apm821xx: replace recovery image for the MBL with initramfs
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 7 Oct 2016 18:29:03 +0000 (20:29 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 13 Oct 2016 15:04:33 +0000 (17:04 +0200)
commit4fc48a8cf29bfc6997384c2aa4c72d0b9e6b3313
treeb49d3debdbb0655c8937c9ecba37f09fae73c4a8
parent4104613fae1ebf958cd5957aa336e1b3e53497bb
apm821xx: replace recovery image for the MBL with initramfs

The patch "images: bump default rootfs size to 256 MB"
a1f83bad606411a561e8e60110c71232b1a28aa2 caused a crash
during boot for the recovery images. This is because
both variants of the MyBook Live only have 256MB of RAM
and for the recovery option, the ext4 rootfs was simply
stored in the RAMDISK.

This patch replaces recovery image for the MBL with an
initramfs kernel.

In order to boot the initramfs (for recovery or development):

0. copy the initramfs and device tree into tftp's server directory
   # cp *-initramfs-kernel.bin to /tftp-server/mbl.bin
   # cp *-ext4-kernel.dtb to /tftp-server/fdt.bin

1. Connect the MyBook Live (Duo) serial port.
   (Warning! Use a 3.3v level shifter).

2. Hit Enter during u-boot and insert these three lines:
   # setenv serverip 192.168.1.254; setenv ipaddr 192.168.1.1;
   # tftp ${kernel_addr_r} mbl.bin; tftp ${fdt_addr_r} fdt.bin
   # run addtty addmisc; bootm ${kernel_addr_r} - ${fdt_addr_r}

   Where 192.168.1.254 is your TFTP server.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/image/Makefile
target/linux/apm821xx/image/mbl_gen_recovery_tar.sh [deleted file]
target/linux/apm821xx/sata/config-default
target/linux/apm821xx/sata/target.mk