Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Files downloaded via TFTP by `bootcode.bin` (firmware 6272ee1c3fd9f0a87015adb36830a18f3e3b7245) on Raspberry Pi 2 B #
- ## Boot process #1 ##
- `<SERIAL_NUMBER>/` on the TFTP server contains all files from `/boot` after updating to the "next" branch **plus** `recovery.elf` symlinked to `start.elf`, `recovery.cmdline` symlinked to `cmdline.txt`, as without that the boot process didn't work as you can see in #2 below:
- * <SERIAL_NUMBER>/start.elf - fails after receiving first data packet with:
- ```
- Opcode: Error Code (5)
- Error code: Not defined (0)
- Error message: Early terminate
- ```
- According to [1] (paragraph "TFTP FILE READ") this is just a check for existence done by the Raspi.
- * <SERIAL_NUMBER>/autoboot.txt - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/recovery.elf - succeeds, because I linked it to `start.elf`
- * <SERIAL_NUMBER>/fixup_rc.dat - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.elf - existence positively checked
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/dt-blob.bin - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.elf - existence positively checked
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/bootcfg.txt - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.cmdline - succeeds, because I linked it to `cmdline.txt`
- * <SERIAL_NUMBER>/recovery.img - fails with "File not found"
- * <SERIAL_NUMBER>/recovery7.img - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.img - fails with "File not found"
- * <SERIAL_NUMBER>/kernel7.img - existence positively checked
- * <SERIAL_NUMBER>/armstub7.bin - fails with "File not found"
- * <SERIAL_NUMBER>/armstub.bin - fails with "File not found"
- * <SERIAL_NUMBER>/kernel7.img - download succeeds
- * <SERIAL_NUMBER>/recovery.rfs - fails with "File not found"
- * <SERIAL_NUMBER>/bcm2709-rpi-2-b.dtb - download succeeds
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/overlays/i2c-rtc.dtbo - download succeeds
- [1]: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md
- => Pi boots, but memory is limited to 128 MiB!
- ```
- # dmesg
- [...]
- [ 0.000000] Memory: 111532K/131072K available (6348K kernel code, 432K rwdata, 1712K rodata, 480K init, 764K bss, 11348K reserved, 8192K cma-reserved)
- [...]
- # cat /proc/cmdline
- dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2709.boardrev=0xa01041 bcm2709.serial=0xecaa6d73 smsc95xx.macaddr=B8:27:EB:12:34:56 bcm2708_fb.fbswap=1 bcm2709.uart_clock=3000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/nfs ip=dhcp elevator=deadline rootwait
- ```
- ## Boot process #2 ##
- Same as #1 but with `recovery.elf`, `recovery.cmdline` removed:
- * <SERIAL_NUMBER>/start.elf - existence positively checked
- * <SERIAL_NUMBER>/autoboot.txt - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/ - fails, but maybe check for existence of directory, although this should be already clear by now
- * <SERIAL_NUMBER>/ - fails, but maybe check for existence of directory, although this should be already clear by now
- => Pi does not boot!
- ## Boot process #3 ##
- Same as #1 but `config.txt`, `recovery.elf`, `recovery.cmdline` removed:
- * <SERIAL_NUMBER>/start.elf - existence positively checked
- * <SERIAL_NUMBER>/autoboot.txt - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/start.elf - download succeeds
- * <SERIAL_NUMBER>/ - fails, but maybe check for existence of directory, although this should be already clear by now
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - fails with "File not found"
- * <SERIAL_NUMBER>/dt-blob.bin - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - fails with "File not found"
- * <SERIAL_NUMBER>/bootcfg.txt - fails with "File not found"
- * <SERIAL_NUMBER>/cmdline.txt - download succeeds
- * <SERIAL_NUMBER>/recovery7.img - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.img - fails with "File not found"
- * <SERIAL_NUMBER>/kernel7.img - existence positively checked
- * <SERIAL_NUMBER>/armstub7.img - fails with "File not found"
- * <SERIAL_NUMBER>/armstub.img - fails with "File not found"
- * <SERIAL_NUMBER>/kernel7.img - download succeeds
- * <SERIAL_NUMBER>/bcm2709-rpi-2-b.dtb - download succeeds
- * <SERIAL_NUMBER>/config.txt - fails with "File not found"
- => Pi boots, but memory is limited to 128 MiB!
- ```
- # dmesg
- [...]
- [ 0.000000] Memory: 111532K/131072K available (6348K kernel code, 432K rwdata, 1712K rodata, 480K init, 764K bss, 11348K reserved, 8192K cma-reserved)
- [...]
- # cat /proc/cmdline
- dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2709.boardrev=0xa01041 bcm2709.serial=0xecaa6d73 smsc95xx.macaddr=B8:27:EB:12:34:56 bcm2708_fb.fbswap=1 bcm2709.uart_clock=3000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/nfs ip=dhcp elevator=deadline rootwait
- ```
- ## Boot process #4 ##
- `<SERIAL_NUMBER>/` on the TFTP server contains all files from `/boot` after updating to the "next" branch (i.e. should be the same as #2 but actually worked!):
- * <SERIAL_NUMBER>/start.elf - existence positively checked
- * <SERIAL_NUMBER>/autoboot.txt - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/start.elf - download succeeds
- * <SERIAL_NUMBER>/ - fails, but maybe check for existence of directory, although this should be already clear by now
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/dt-blob.bin - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.elf - fails with "File not found"
- * <SERIAL_NUMBER>/config.txt - download succeeds
- * <SERIAL_NUMBER>/bootcfg.txt - fails with "File not found"
- * <SERIAL_NUMBER>/cmdline.txt - download succeeds
- * <SERIAL_NUMBER>/recovery7.img - fails with "File not found"
- * <SERIAL_NUMBER>/recovery.img - fails with "File not found"
- * <SERIAL_NUMBER>/kernel7.img - existence positively checked
- * <SERIAL_NUMBER>/armstub7.img - fails with "File not found"
- * <SERIAL_NUMBER>/armstub.img - fails with "File not found"
- * <SERIAL_NUMBER>/kernel7.img - download succeeds
- * <SERIAL_NUMBER>/bcm2709-rpi-2-b.dtb - download succeeds
- * <SERIAL_NUMBER>/config.txt - download succeeds
- => Pi boots, but memory is limited to 128 MiB!
- ```
- # dmesg
- [...]
- [ 0.000000] Memory: 111532K/131072K available (6348K kernel code, 432K rwdata, 1712K rodata, 480K init, 764K bss, 11348K reserved, 8192K cma-reserved)
- [...]
- # cat /proc/cmdline
- dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2709.boardrev=0xa01041 bcm2709.serial=0xecaa6d73 smsc95xx.macaddr=B8:27:EB:12:34:56 bcm2708_fb.fbswap=1 bcm2709.uart_clock=3000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/nfs ip=dhcp elevator=deadline rootwait
- ```
Add Comment
Please, Sign In to add comment