| Summary: | [Routerstation] The system can not boot via NFS | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BSPs | Reporter: | Yi Zhao <yi.zhao> |
| Component: | bsps-meta-yocto | Assignee: | Michel Thebeau <michel.thebeau> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | Medium+ | CC: | alexandru.damian, ke.zou, michel.thebeau, ning.zhang, richard.purdie, sgw, yi.zhao |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M6 | ||
| Hardware: | Routerstationpro | ||
| OS: | mips | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
| Bug Depends on: | 4339 | ||
| Bug Blocks: | |||
|
Description
Yi Zhao
2013-04-08 08:55:53 UTC
Mitch will have a look at this and update the asigned to field when he grabs it. Hi, > Using default protocol (TFTP) > Unrecognized image type: 0x0 Perhaps vmlinux.bin is legacy, but I haven't figured it out either. So yes, I have some patches ready for comment (bug 3515) which I'll send out soon. It'll make this go away too. M FYI, the vmlinux.bin does boot when you know how. load -v -m tftp -h 128.224.149.6 -b 0x80060000 -r mthebeau/vmlinux.bin exec -b 0x80060000 -c "console=ttyS0,115200 root=/dev/sda1 rw rootdelay=2 board=UBNT-RSPRO" 0x806a5430 That 0x806a5430 came from copying the load address from the elf. M (In reply to comment #3) > FYI, the vmlinux.bin does boot when you know how. > > load -v -m tftp -h 128.224.149.6 -b 0x80060000 -r mthebeau/vmlinux.bin > > exec -b 0x80060000 -c "console=ttyS0,115200 root=/dev/sda1 rw rootdelay=2 > board=UBNT-RSPRO" 0x806a5430 > > That 0x806a5430 came from copying the load address from the elf. > > M ... deploy/images$ "$CROSS_COMPILE"readelf -s vmlinux | grep 806a5430 30645: 806a5430 180 FUNC GLOBAL DEFAULT 1 kernel_entry (In reply to comment #3) > FYI, the vmlinux.bin does boot when you know how. > > load -v -m tftp -h 128.224.149.6 -b 0x80060000 -r mthebeau/vmlinux.bin > > exec -b 0x80060000 -c "console=ttyS0,115200 root=/dev/sda1 rw rootdelay=2 > board=UBNT-RSPRO" 0x806a5430 > > That 0x806a5430 came from copying the load address from the elf. > > M Thanks. It could work now. Is the entry address 0x806a5430 permanent and we can use it as the default setting in redboot ? Or we need to read the address in a new kernel every time ? (In reply to comment #5) > (In reply to comment #3) > > FYI, the vmlinux.bin does boot when you know how. > > > > load -v -m tftp -h 128.224.149.6 -b 0x80060000 -r mthebeau/vmlinux.bin > > > > exec -b 0x80060000 -c "console=ttyS0,115200 root=/dev/sda1 rw rootdelay=2 > > board=UBNT-RSPRO" 0x806a5430 > > > > That 0x806a5430 came from copying the load address from the elf. > > > > M > > Thanks. It could work now. > Is the entry address 0x806a5430 permanent and we can use it as the default > setting in redboot ? Or we need to read the address in a new kernel every > time ? Hi, I'm not sure that using the binary format vmlinux.bin is workable, for that reason you mention above. I am open to direction. I know that the entry address is readable from the elf image (kernel_entry). The address would probably change. Comment in the code suggests that vmlinux.bin is legacy. arch/mips/kernel/head.S: 134:#ifdef CONFIG_BOOT_RAW 135- /* 136- * Give us a fighting chance of running if execution beings at the 137- * kernel load address. This is needed because this platform does 138- * not have a ELF loader yet. 139- */ It is a stretch ;) but I think that is a comment for history. I have a set of patches that will replace vmlinux.bin with the elf image stripped of .debug and .comment (making the elf image ~9mb). I sent a RFC to Richard/OE-core and will resend them to oe-core and poky hopefully Wednesday morning. M Patch sent 8/04 Fixed in master after http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=95b71d2b03a3a6dc5d32a7d6a84ec3420f39aa61 Verified with dylan branch: 789b2b7e0cca404ff8ba8ed5ba823d215e6ba5b4 |