Freddy Leitner 9671a2d2c8 apm821xx: MBL: load kernel/dtb from SATA 0:1 first
This remedies an issue with the MBL Duo if both disks are inserted
and contain OpenWrt. kernel and dtb would be loaded from SATA 1:1
while rootfs (/dev/sda2) would be mounted on SATA 0:1.

Such a mix&match would obviously only work if both OpenWrt versions/
builds are identical, and especially fail after sysupgrade upgraded
the system disk on SATA 0:1.

The fallback to SATA 1:1 needs to be kept for MBL Single (only has
SATA 1:1) and MBL Duo with one disk inserted on SATA 1:1. To speed
up booting in those cases, the unneccesarily doubled "sata init"
will only be called once. (In theory it could be omitted completely
since the on-flash boot script already initializes SATA to load the
on-disk boot script.)

Tested on MBL Duo (all possible combination of disks) and MBL Single

Signed-off-by: Freddy Leitner <hello@square.wf>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
2018-11-26 21:30:31 +01:00
..
2018-08-08 09:54:51 +02:00
2018-05-24 17:24:30 +02:00
2018-10-19 10:00:48 +02:00
2018-10-09 14:36:00 +02:00
2018-11-05 16:00:47 +01:00
2018-11-14 16:27:43 +01:00
2018-11-14 16:27:43 +01:00
2018-11-05 16:00:47 +01:00
2018-11-14 16:27:43 +01:00
2018-10-19 10:00:48 +02:00
2018-11-22 10:51:27 +01:00
2018-11-06 11:49:55 +01:00
2018-11-05 16:00:47 +01:00
2018-11-14 16:27:43 +01:00
2018-11-22 10:51:27 +01:00
2018-11-14 16:27:43 +01:00
2018-01-09 10:26:16 +01:00
2018-11-05 16:00:47 +01:00
2018-11-14 16:27:43 +01:00
2018-10-10 14:46:25 +02:00
2018-10-09 14:36:00 +02:00
2018-10-19 10:00:48 +02:00
2018-04-19 14:38:57 +02:00
2018-11-14 16:27:43 +01:00
2018-11-14 16:27:43 +01:00
2018-05-24 16:03:58 +02:00
2018-10-09 14:36:00 +02:00