immortalwrt/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
armsr
at91
ath25
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
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
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
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
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
octeon octeon: convert to new LED color/function format where possible 2024-02-07 14:48:41 +01:00
octeontx
omap omap: drop kernel 5.15 2024-02-13 19:05:48 +01:00
oxnas
pistachio
qoriq
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
sunxi
tegra
uml
x86
zynq
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00