How to boot x86_64 OpenWrt from USB Storage

I did not find any good tutorials. I wanted to boot x86_64 from USB.
So I just give here a quick howto.

  1. Select Architecture (x86), Subtarget (x86_64), if u want x86
  2. Select Target Images -> ramdisk, Target Images -> ext4
  3. Select Kernel Modules -> USB Support -> kmod-usb-core, kmod-usb-hid, kmod-usb-storage, kmod-usb-usb2, kmod-usb-usb3
  4. Build
  5. Extract image from openwrt-x86-64-combined-ext4.img.gz to openwrt-x86-64-combined-ext4.img
  6. dd to usb drive e.g. dd if=openwrt-x86-64-combined-ext4.img of=/dev/sdwhatever bs=4M status=progress oflag=direct
  7. Now boot from USB Drive in LEGACY mode!
1 Like

There is also a PR on GitHub for UEFI boot as well that works (and is required, as there is no legacy BIOS) on my ODROID H2

1 Like

Wow. This board has m.2. o.O
Thank u! I was searching for something like this! :smiley:

Yes, but don't spend big dough stuffing it:
4 x PCIe 2.0 for one M.2 NVMe storage