openwrt/target/linux
Christian Lamparter 8b0407d15d apm821xx: MBL DUO-only: enable USB-Storage for boot from USB support
it is possible to boot and run OpenWrt from an image on an USB-Stick
on the MyBook Live DUO. (No, the MyBook Live Single does NOT have an
USB-Port and attempts at enabling it sadly all failed... so far).

To do that:
First, prepare a USB-Stick by writing the raw and uncompressed OpenWRT
factory image for the device onto the stick (i.e.
 # gunzip -c openwrt-*wd_mybooklive*-factory.img.gz > /dev/sd$XX).

Then enter the u-boot via an attached TTL/CMOS 3.3V cable adapter and
give the following commands a try in the:

 usb start; sata init
 ext2load usb 0:1 ${fdt_addr_r} /boot/apollo3g.dtb
 ext2load usb 0:1 ${kernel_addr_r} /boot/uImage
 setenv bootargs 'root=/dev/sdc2 rw rootfstype=squashfs,ext4 rootdelay=5'
 run addtty; bootm ${kernel_addr_r} - ${fdt_addr_r}

Notes:
 - booting from USB-Sticks takes a long time! Be prepared to wait a few
   minutes. (~3 minutes for 4 MiB /boot/uImage file on a USB 2.0 Stick)

 - the bootargs part 'root=/dev/sdX2' depends on how many HDDs/SSDs are
   slotted in. (if none: then use sda, if one: sdb. if two: sdc)

 - rootdelay is important as the storage on the USB-Sticks do not show
   up fast enough. 5 seconds might be excessive though.

 - it's possible to concat these commands together in one line and
   write it into u-boot's "bootcmd" environment variable and save the
   environment to make the device to always boot from USB from then on.

   if you have accidentally overridden the 'bootcmd' and want to return
   to 'spec' enter the following commands :

   setenv bootcmd 'run boot_sata_script_ap2nc'
   saveenv

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2024-03-02 14:08:07 +01:00
..
airoha airoha: dts: fix pcie ranges properties 2024-02-26 13:19:26 +01:00
apm821xx apm821xx: MBL DUO-only: enable USB-Storage for boot from USB support 2024-03-02 14:08:07 +01:00
archs38 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
armsr kernel: bump 6.1 to 6.1.72 2024-01-19 21:24:44 +01:00
at91 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
ath25 kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
ath79 ath79: nand: add SUPPORTED_DEVICES for Meraki MR18 2024-02-29 21:28:47 +01:00
bcm27xx kernel: bump 6.1 to 6.1.79 2024-02-24 19:25:02 +01:00
bcm47xx kernel: bump 5.15 to 5.15.146 2024-01-06 10:53:39 +01:00
bcm53xx kernel: 6.1: backport UBI device model improvements 2024-02-15 19:06:36 +00:00
bcm63xx bcm63xx: convert to new LED color/function format where possible 2024-02-07 14:48:35 +01:00
bcm4908 kernel: bump 5.15 to 5.15.137 2023-10-27 19:43:06 +01:00
bmips bmips: dts: move leds dt-bindings include to SoCs 2024-02-08 09:45:26 +01:00
d1 d1: add new target 2024-02-29 16:50:22 +01:00
gemini kernel: bump 6.1 to 6.1.71 2024-01-06 12:52:49 +01:00
generic generic l2tp: drop flow hash on forward 2024-02-26 22:17:39 +01:00
imx kernel: bump 6.1 to 6.1.79 2024-02-24 19:25:02 +01:00
ipq40xx ipq40xx: Netgear LBR20 fix for proper img builds 2024-02-24 19:49:39 +01:00
ipq806x ipq806x: refresh Kconfig 2024-02-23 18:05:09 +01:00
ixp4xx ixp4xx: add Generic subtarget definition 2023-12-09 14:45:50 +01:00
kirkwood kirkwood: Add Marvell RTC to all machines with nothing else 2024-02-29 23:01:38 +01:00
lantiq lantiq: add support for Arcadyan VRV9510KWAC23 2024-02-27 22:27:46 +01:00
layerscape layerscape: remove 5.15 kernel support 2024-03-01 18:29:09 +01:00
malta malta: Remove kernel 5.15 configuration 2024-02-03 04:35:25 +00:00
mediatek mediatek: mt7622: rtl8367c: add casts to fix compiler warnings 2024-03-01 01:42:36 +00:00
mpc85xx mpc85xx: convert to new LED color/function format where possible 2024-02-07 14:48:40 +01:00
mvebu mvebu: add kernel module for Turris Omnia Wi-Fi 6 2024-02-26 21:34:27 +01:00
mxs mxs: add testing kernel 6.1 2023-07-01 12:54:30 +02:00
octeon octeon: convert to new LED color/function format where possible 2024-02-07 14:48:41 +01:00
octeontx kernel: bump 5.15 to 5.15.148 2024-02-01 21:36:00 +01:00
omap omap: drop kernel 5.15 2024-02-13 19:05:48 +01:00
oxnas oxnas: do not use pcie-controller 2024-01-01 02:34:48 +01:00
pistachio kernel: fix mtd/NVMEM regression affecting U-Boot env NVMEM driver 2023-10-31 17:33:28 +01:00
qoriq qoriq: pad rootfs with zeros 2023-12-02 14:06:56 +02:00
qualcommax qualcommax: enable DEBUG_BUGVERBOSE 2024-03-01 19:51:24 +01:00
ramips ramips: fix nvmem-cells for routers based on TP-Link Archer 2024-02-29 21:24:56 +01:00
realtek realtek: fix Netgear GS110TPP OEM install 2024-02-18 09:56:45 +01:00
rockchip rockchip: fix device packages for nanopi r4s enterprise edition 2024-02-25 12:36:02 +08:00
sifiveu kernel: remove CONFIG_DEVTMPFS_SAFE from target config 2023-11-19 16:46:24 +01:00
sunxi sunxi: mark upstreamed patches as such 2023-12-19 16:02:05 +01:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml kernel: bump 6.1 to 6.1.53 2023-09-23 13:10:28 +02:00
x86 Revert "x86: add support for Mellanox Spectrum SN2000 Switches" 2023-12-23 07:52:05 +00:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00