i've been thinking how should i boot my rpi2 from usb... and i found a way but its not working and i cant figure out what to do next.
steps to reproduce:
1. format the mmc card and follow this guide: https://www.beyondlogic.org/compiling-u-boot-with-device-tree-support-for-the-raspberry-pi/
2. format my usb external drive as a single partition and flash the image with this: $this->bbcode_second_pass_code('', 'bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root')
$this->bbcode_second_pass_code('', 'U-Boot> part list usb 0
Partition Map for USB device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 234439598 00837ee5-01 83
U-Boot> part list mmc 0
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 61118464 02930e5b-01 0c
')
3. add a file in the mmc boot.txt:
$this->bbcode_second_pass_code('', '
setenv kernel kernel7.img
setenv initramfs initramfs-linux.img
setenv bootargs root=/dev/sda1 rw rootwait rootfstype=ext4 rootdelay=60 smsc95xx.macaddr="${usbethaddr}"
if load usb 0:1 ${kernel_addr_r} /boot/${kernel}; then
if load usb 0:1 ${fdt_addr_r} /boot/${fdtfile}; then
if load usb 0:1 ${ramdisk_addr_r} /boot/${initramfs}; then
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
bootz ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi')
create the boot.scr to enable autoboot on uboot!
$this->bbcode_second_pass_code('', 'sudo mkimage -C none -A arm -T script -d boot.txt boot.scr')
add inside the config.txt:
$this->bbcode_second_pass_code('', 'kernel=uboot.bin')
start the boot process - uboot boot time:
$this->bbcode_second_pass_code('', 'U-Boot 2022.10 (Nov 10 2022 - 15:08:19 +0000)
DRAM: 948 MiB
RPI 2 Model B (0xa01041)
Core: 63 devices, 14 uclasses, devicetree: embed
MMC: mmc@7e202000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial
Out: vidconsole
Err: vidconsole
Net: No ethernet found.
starting USB...
Bus usb@7e980000: USB DWC2
scanning bus usb@7e980000 for devices... 5 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
722 bytes read in 4 ms (175.8 KiB/s)
## Executing script at 02400000
8917088 bytes read in 217 ms (39.2 MiB/s)
19909 bytes read in 2 ms (9.5 MiB/s)
7002606 bytes read in 170 ms (39.3 MiB/s)
Kernel image @ 0x080000 [ 0x000000 - 0x881060 ]
## Flattened Device Tree blob at 02600000
Booting using the fdt blob at 0x2600000
Using Device Tree in place at 02600000, end 02607dc4
Starting kernel ...
')
loading Arch linux kernel - after uboot ends:
$this->bbcode_second_pass_code('', '[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Linux version 5.15.56-2-rpi-ARCH (builduser@leming) (armv7l-unknown-linux-gnueabihf-gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP Mon Jul 25 12:40:48 MDT 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 2 Model B
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000037400000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Normal empty
[ 0.000000] HighMem [mem 0x0000000030000000-0x000000003b3fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
[ 0.000000] percpu: Embedded 16 pages/cpu s36300 r8192 d21044 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 240960
[ 0.000000] Kernel command line: root=/dev/sda1 rw rootwait rootfstype=ext4 rootdelay=30 smsc95xx.macaddr=b8:27:eb:84:5f:3b audit=0
[ 0.000000] audit: disabled (until reboot)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 863992K/970752K available (14336K kernel code, 1539K rwdata, 3924K rodata, 2048K init, 628K bss, 41224K reserved, 65536K cma-reserved, 118784K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000004] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000055] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000140] bcm2835: system timer (irq = 60)
[ 0.000632] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[ 0.000665] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000695] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000720] Switching to timer-based delay loop, resolution 52ns
[ 0.001111] Console: colour dummy device 80x30
[ 0.001810] printk: console [tty0] enabled
[ 0.001899] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.001956] pid_max: default: 32768 minimum: 301
[ 0.002406] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002467] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.003974] cgroup: Disabling memory control group subsystem
[ 0.004330] CPU: Testing write buffer coherency: ok
[ 0.004961] CPU0: update cpu_capacity 1024
[ 0.005007] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.006494] Setting up static identity map for 0x200000 - 0x20003c
[ 0.006762] rcu: Hierarchical SRCU implementation.
[ 0.007850] smp: Bringing up secondary CPUs ...
[ 0.009234] CPU1: update cpu_capacity 1024
[ 0.009253] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[ 0.010764] CPU2: update cpu_capacity 1024
[ 0.010785] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[ 0.012146] CPU3: update cpu_capacity 1024
[ 0.012164] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[ 0.012311] smp: Brought up 1 node, 4 CPUs
[ 0.012459] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.012491] CPU: All CPU(s) started in HYP mode.
[ 0.012512] CPU: Virtualization extensions available.
[ 0.013769] devtmpfs: initialized
[ 0.026962] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.027299] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027369] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.031680] pinctrl core: initialized pinctrl subsystem
[ 0.033935] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.036710] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.043844] thermal_sys: Registered thermal governor 'step_wise'
[ 0.044639] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.044723] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.045104] Serial: AMBA PL011 UART driver
[ 0.052413] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.070896] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-06-15T20:07:33, variant start
[ 0.080908] raspberrypi-firmware soc:firmware: Firmware hash is ede5f7d365ef42ebbd4aa144ee5b51ea75604c82
[ 0.130565] Kprobes globally optimized
[ 0.131682] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.135780] cryptd: max_cpu_qlen set to 1000
[ 0.311278] raid6: neonx8 gen() 383 MB/s
[ 0.481462] raid6: neonx8 xor() 321 MB/s
[ 0.651657] raid6: neonx4 gen() 547 MB/s
[ 0.821804] raid6: neonx4 xor() 414 MB/s
[ 0.991982] raid6: neonx2 gen() 546 MB/s
[ 1.162181] raid6: neonx2 xor() 405 MB/s
[ 1.332386] raid6: neonx1 gen() 447 MB/s
[ 1.502549] raid6: neonx1 xor() 328 MB/s
[ 1.672808] raid6: int32x8 gen() 147 MB/s
[ 1.842952] raid6: int32x8 xor() 91 MB/s
[ 2.013241] raid6: int32x4 gen() 152 MB/s
[ 2.183387] raid6: int32x4 xor() 97 MB/s
[ 2.353547] raid6: int32x2 gen() 213 MB/s
[ 2.523669] raid6: int32x2 xor() 104 MB/s
[ 2.693842] raid6: int32x1 gen() 190 MB/s
[ 2.864093] raid6: int32x1 xor() 100 MB/s
[ 2.864124] raid6: using algorithm neonx4 gen() 547 MB/s
[ 2.864150] raid6: .... xor() 414 MB/s, rmw enabled
[ 2.864175] raid6: using neon recovery algorithm
[ 2.864898] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[ 2.866567] iommu: Default domain type: Translated
[ 2.866609] iommu: DMA domain TLB invalidation policy: lazy mode
[ 2.866936] vgaarb: loaded
[ 2.867685] SCSI subsystem initialized
[ 2.868006] usbcore: registered new interface driver usbfs
[ 2.868098] usbcore: registered new interface driver hub
[ 2.868187] usbcore: registered new device driver usb
[ 2.868445] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 2.868683] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 2.871532] clocksource: Switched to clocksource arch_sys_counter
[ 2.963309] VFS: Disk quotas dquot_6.6.0
[ 2.963471] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.963758] FS-Cache: Loaded
[ 2.964203] CacheFiles: Loaded
[ 2.964436] simple-framebuffer 3eaf0000.framebuffer: framebuffer at 0x3eaf0000, 0x10a800 bytes
[ 2.964493] simple-framebuffer 3eaf0000.framebuffer: format=a8r8g8b8, mode=656x416x32, linelength=2624
[ 2.969307] Console: switching to colour frame buffer device 82x26
[ 2.975790] simple-framebuffer 3eaf0000.framebuffer: fb0: simplefb registered!
[ 2.991152] NET: Registered PF_INET protocol family
[ 2.994100] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 3.001161] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 3.006595] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 3.012333] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 3.018308] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 3.021591] TCP: Hash tables configured (established 8192 bind 8192)
[ 3.024876] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 3.027997] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 3.031437] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 3.035605] RPC: Registered named UNIX socket transport module.
[ 3.038717] RPC: Registered udp transport module.
[ 3.041729] RPC: Registered tcp transport module.
[ 3.044560] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 3.047362] NET: Registered PF_XDP protocol family
[ 3.050100] PCI: CLS 0 bytes, default 64
[ 3.053416] Trying to unpack rootfs image as initramfs...
[ 3.719597] Freeing initrd memory: 6840K
[ 4.603890] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 4.613305] Initialise system trusted keyrings
[ 4.616258] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 4.629311] zbud: loaded
[ 4.634363] FS-Cache: Netfs 'nfs' registered for caching
[ 4.637931] NFS: Registering the id_resolver key type
[ 4.640361] Key type id_resolver registered
[ 4.642770] Key type id_legacy registered
[ 4.645140] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 4.647405] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 4.652418] JFS: nTxBlock = 7315, nTxLock = 58523
[ 4.664027] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[ 4.825519] xor: measuring software checksum speed
[ 4.840582] arm4regs : 787 MB/sec
[ 4.863315] 8regs : 487 MB/sec
[ 4.887488] 32regs : 451 MB/sec
[ 4.901641] neon : 833 MB/sec
[ 4.903889] xor: using function: neon (833 MB/sec)
[ 4.906087] async_tx: api initialized (async)
[ 4.908238] Key type asymmetric registered
[ 4.910326] Asymmetric key parser 'x509' registered
[ 4.912585] bounce: pool size: 64 pages
[ 4.914711] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 4.919104] io scheduler mq-deadline registered
[ 4.921242] io scheduler kyber registered
[ 4.923469] io scheduler bfq registered
[ 4.935520] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
[ 4.952618] loop: module loaded
[ 4.955445] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 4.958299] Loading iSCSI transport class v2.0-870.
[ 4.965396] usbcore: registered new interface driver lan78xx
[ 4.967559] usbcore: registered new interface driver ax88179_178a
[ 4.969624] usbcore: registered new interface driver cdc_ether
[ 4.971767] usbcore: registered new interface driver smsc95xx
[ 4.973881] usbcore: registered new interface driver cdc_ncm
[ 4.976292] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 4.978971] usbcore: registered new interface driver uas
[ 4.981091] usbcore: registered new interface driver usb-storage
[ 4.983184] usbcore: registered new interface driver ums-alauda
[ 4.985195] usbcore: registered new interface driver ums-cypress
[ 4.987123] usbcore: registered new interface driver ums-datafab
[ 4.988940] usbcore: registered new interface driver ums_eneub6250
[ 4.990646] usbcore: registered new interface driver ums-freecom
[ 4.992313] usbcore: registered new interface driver ums-isd200
[ 4.993929] usbcore: registered new interface driver ums-jumpshot
[ 4.995530] usbcore: registered new interface driver ums-karma
[ 4.997014] usbcore: registered new interface driver ums-onetouch
[ 4.998387] usbcore: registered new interface driver ums-realtek
[ 4.999705] usbcore: registered new interface driver ums-sddr09
[ 5.000920] usbcore: registered new interface driver ums-sddr55
[ 5.002049] usbcore: registered new interface driver ums-usbat
[ 5.003533] mousedev: PS/2 mouse device common for all mice
[ 5.006158] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 5.007943] device-mapper: uevent: version 1.0.3
[ 5.009543] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[ 5.012917] device-mapper: multipath round-robin: version 1.2.0 loaded
[ 5.014339] device-mapper: multipath queue-length: version 0.2.0 loaded
[ 5.015780] device-mapper: multipath service-time: version 0.3.0 loaded
[ 5.017227] device-mapper: raid: Loading target version 1.15.1
[ 5.020883] sdhci: Secure Digital Host Controller Interface driver
[ 5.022567] sdhci: Copyright(c) Pierre Ossman
[ 5.024636] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
[ 5.025854] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.028211] ledtrig-cpu: registered to indicate activity on CPUs
[ 5.029788] hid: raw HID events driver (C) Jiri Kosina
[ 5.031455] usbcore: registered new interface driver usbhid
[ 5.032902] usbhid: USB HID core driver
[ 5.037868] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 5.039444] [vc_sm_connected_init]: start
[ 5.043763] [vc_sm_connected_init]: installed successfully
[ 5.045729] Initializing XFRM netlink socket
[ 5.047325] NET: Registered PF_PACKET protocol family
[ 5.049195] Key type dns_resolver registered
[ 5.050984] Registering SWP/SWPB emulation handler
[ 5.065166] registered taskstats version 1
[ 5.066713] Loading compiled-in X.509 certificates
[ 5.068720] Key type ._fscrypt registered
[ 5.070171] Key type .fscrypt registered
[ 5.071632] Key type fscrypt-provisioning registered
[ 5.074300] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[ 5.076030] Key type encrypted registered
[ 5.083303] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[ 6.326290] printk: console [ttyAMA0] enabled
[ 6.335279] of_cfs_init
[ 6.339346] of_cfs_init: OK
[ 6.344406] uart-pl011 3f201000.serial: no DMA platform data
[ 6.354836] Freeing unused kernel image (initmem) memory: 2048K
[ 6.382110] Run /init as init process
:: running early hook [udev]
Starting version 251.4-1-arch
:: running hook [udev]
:: Triggering uevents...
Waiting 30 seconds for device /dev/sda1 ...
ERROR: device '/dev/sda1' not found. Skipping fsck.
:: mounting '/dev/sda1' on real root
mount: /new_root: special device /dev/sda1 does not exist.
dmesg(1) may have more information after failed mount system call.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
[rootfs ]#
')
this is where i'm stuck! i cant figure out the part of loading/attaching usb devices to further continue the process...
$this->bbcode_second_pass_code('', '[rootfs ]# lsmod
Module Size Used by')
$this->bbcode_second_pass_code('', '[rootfs ]# ls /dev
autofs mem tty23 tty44 tty8
block null tty24 tty45 tty9
btrfs-control port tty25 tty46 ttyAMA0
cachefiles ptmx tty26 tty47 ttyprintk
char random tty27 tty48 uhid
console rfkill tty28 tty49 urandom
disk tty tty29 tty5 vc-mem
dma_heap tty0 tty3 tty50 vchiq
fb0 tty1 tty30 tty51 vcs
full tty10 tty31 tty52 vcs1
gpiochip0 tty11 tty32 tty53 vcsa
input tty12 tty33 tty54 vcsa1
kmsg tty13 tty34 tty55 vcsm-cma
loop-control tty14 tty35 tty56 vcsu
loop0 tty15 tty36 tty57 vcsu1
loop1 tty16 tty37 tty58 vga_arbiter
loop2 tty17 tty38 tty59 watchdog
loop3 tty18 tty39 tty6 watchdog0
loop4 tty19 tty4 tty60 zero
loop5 tty2 tty40 tty61
loop6 tty20 tty41 tty62
loop7 tty21 tty42 tty63
mapper tty22 tty43 tty7
')
$this->bbcode_second_pass_code('', '[rootfs ]# dmesg
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Linux version 5.15.56-2-rpi-ARCH (builduser@leming) (armv7l-unknown-linux-gnueabihf-gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP Mon Jul 25 12:40:48 MDT 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 2 Model B
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000037400000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff]
[ 0.000000] Normal empty
[ 0.000000] HighMem [mem 0x0000000030000000-0x000000003b3fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
[ 0.000000] percpu: Embedded 16 pages/cpu s36300 r8192 d21044 u65536
[ 0.000000] pcpu-alloc: s36300 r8192 d21044 u65536 alloc=16*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 240960
[ 0.000000] Kernel command line: root=/dev/sda1 rw rootwait rootfstype=ext4 rootdelay=30 smsc95xx.macaddr=b8:27:eb:84:5f:3b audit=0
[ 0.000000] audit: disabled (until reboot)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 863992K/970752K available (14336K kernel code, 1539K rwdata, 3924K rodata, 2048K init, 628K bss, 41224K reserved, 65536K cma-reserved, 118784K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000004] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000055] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000140] bcm2835: system timer (irq = 60)
[ 0.000632] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[ 0.000665] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000695] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000720] Switching to timer-based delay loop, resolution 52ns
[ 0.001111] Console: colour dummy device 80x30
[ 0.001810] printk: console [tty0] enabled
[ 0.001899] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.001956] pid_max: default: 32768 minimum: 301
[ 0.002406] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002467] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.003974] cgroup: Disabling memory control group subsystem
[ 0.004330] CPU: Testing write buffer coherency: ok
[ 0.004961] CPU0: update cpu_capacity 1024
[ 0.005007] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.006494] Setting up static identity map for 0x200000 - 0x20003c
[ 0.006762] rcu: Hierarchical SRCU implementation.
[ 0.007850] smp: Bringing up secondary CPUs ...
[ 0.009234] CPU1: update cpu_capacity 1024
[ 0.009253] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[ 0.010764] CPU2: update cpu_capacity 1024
[ 0.010785] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[ 0.012146] CPU3: update cpu_capacity 1024
[ 0.012164] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[ 0.012311] smp: Brought up 1 node, 4 CPUs
[ 0.012459] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.012491] CPU: All CPU(s) started in HYP mode.
[ 0.012512] CPU: Virtualization extensions available.
[ 0.013769] devtmpfs: initialized
[ 0.026962] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.027299] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027369] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.031680] pinctrl core: initialized pinctrl subsystem
[ 0.033935] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.036710] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.043844] thermal_sys: Registered thermal governor 'step_wise'
[ 0.044639] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.044723] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.045104] Serial: AMBA PL011 UART driver
[ 0.052413] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.070896] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-06-15T20:07:33, variant start
[ 0.080908] raspberrypi-firmware soc:firmware: Firmware hash is ede5f7d365ef42ebbd4aa144ee5b51ea75604c82
[ 0.130565] Kprobes globally optimized
[ 0.131682] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.135780] cryptd: max_cpu_qlen set to 1000
[ 0.311278] raid6: neonx8 gen() 383 MB/s
[ 0.481462] raid6: neonx8 xor() 321 MB/s
[ 0.651657] raid6: neonx4 gen() 547 MB/s
[ 0.821804] raid6: neonx4 xor() 414 MB/s
[ 0.991982] raid6: neonx2 gen() 546 MB/s
[ 1.162181] raid6: neonx2 xor() 405 MB/s
[ 1.332386] raid6: neonx1 gen() 447 MB/s
[ 1.502549] raid6: neonx1 xor() 328 MB/s
[ 1.672808] raid6: int32x8 gen() 147 MB/s
[ 1.842952] raid6: int32x8 xor() 91 MB/s
[ 2.013241] raid6: int32x4 gen() 152 MB/s
[ 2.183387] raid6: int32x4 xor() 97 MB/s
[ 2.353547] raid6: int32x2 gen() 213 MB/s
[ 2.523669] raid6: int32x2 xor() 104 MB/s
[ 2.693842] raid6: int32x1 gen() 190 MB/s
[ 2.864093] raid6: int32x1 xor() 100 MB/s
[ 2.864124] raid6: using algorithm neonx4 gen() 547 MB/s
[ 2.864150] raid6: .... xor() 414 MB/s, rmw enabled
[ 2.864175] raid6: using neon recovery algorithm
[ 2.864898] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[ 2.866567] iommu: Default domain type: Translated
[ 2.866609] iommu: DMA domain TLB invalidation policy: lazy mode
[ 2.866936] vgaarb: loaded
[ 2.867685] SCSI subsystem initialized
[ 2.868006] usbcore: registered new interface driver usbfs
[ 2.868098] usbcore: registered new interface driver hub
[ 2.868187] usbcore: registered new device driver usb
[ 2.868445] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 2.868683] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 2.871532] clocksource: Switched to clocksource arch_sys_counter
[ 2.963309] VFS: Disk quotas dquot_6.6.0
[ 2.963471] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.963758] FS-Cache: Loaded
[ 2.964203] CacheFiles: Loaded
[ 2.964436] simple-framebuffer 3eaf0000.framebuffer: framebuffer at 0x3eaf0000, 0x10a800 bytes
[ 2.964493] simple-framebuffer 3eaf0000.framebuffer: format=a8r8g8b8, mode=656x416x32, linelength=2624
[ 2.969307] Console: switching to colour frame buffer device 82x26
[ 2.975790] simple-framebuffer 3eaf0000.framebuffer: fb0: simplefb registered!
[ 2.991152] NET: Registered PF_INET protocol family
[ 2.994100] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 3.001161] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 3.006595] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 3.012333] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 3.018308] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 3.021591] TCP: Hash tables configured (established 8192 bind 8192)
[ 3.024876] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 3.027997] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 3.031437] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 3.035605] RPC: Registered named UNIX socket transport module.
[ 3.038717] RPC: Registered udp transport module.
[ 3.041729] RPC: Registered tcp transport module.
[ 3.044560] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 3.047362] NET: Registered PF_XDP protocol family
[ 3.050100] PCI: CLS 0 bytes, default 64
[ 3.053416] Trying to unpack rootfs image as initramfs...
[ 3.719597] Freeing initrd memory: 6840K
[ 4.603890] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 4.613305] Initialise system trusted keyrings
[ 4.616258] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 4.629311] zbud: loaded
[ 4.634363] FS-Cache: Netfs 'nfs' registered for caching
[ 4.637931] NFS: Registering the id_resolver key type
[ 4.640361] Key type id_resolver registered
[ 4.642770] Key type id_legacy registered
[ 4.645140] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 4.647405] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 4.652418] JFS: nTxBlock = 7315, nTxLock = 58523
[ 4.664027] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[ 4.825519] xor: measuring software checksum speed
[ 4.840582] arm4regs : 787 MB/sec
[ 4.863315] 8regs : 487 MB/sec
[ 4.887488] 32regs : 451 MB/sec
[ 4.901641] neon : 833 MB/sec
[ 4.903889] xor: using function: neon (833 MB/sec)
[ 4.906087] async_tx: api initialized (async)
[ 4.908238] Key type asymmetric registered
[ 4.910326] Asymmetric key parser 'x509' registered
[ 4.912585] bounce: pool size: 64 pages
[ 4.914711] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 4.919104] io scheduler mq-deadline registered
[ 4.921242] io scheduler kyber registered
[ 4.923469] io scheduler bfq registered
[ 4.935520] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
[ 4.952618] loop: module loaded
[ 4.955445] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 4.958299] Loading iSCSI transport class v2.0-870.
[ 4.965396] usbcore: registered new interface driver lan78xx
[ 4.967559] usbcore: registered new interface driver ax88179_178a
[ 4.969624] usbcore: registered new interface driver cdc_ether
[ 4.971767] usbcore: registered new interface driver smsc95xx
[ 4.973881] usbcore: registered new interface driver cdc_ncm
[ 4.976292] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 4.978420] dwc_otg: FIQ enabled
[ 4.978430] dwc_otg: NAK holdoff enabled
[ 4.978438] dwc_otg: FIQ split-transaction FSM enabled
[ 4.978451] Module dwc_common_port init
[ 4.978971] usbcore: registered new interface driver uas
[ 4.981091] usbcore: registered new interface driver usb-storage
[ 4.983184] usbcore: registered new interface driver ums-alauda
[ 4.985195] usbcore: registered new interface driver ums-cypress
[ 4.987123] usbcore: registered new interface driver ums-datafab
[ 4.988940] usbcore: registered new interface driver ums_eneub6250
[ 4.990646] usbcore: registered new interface driver ums-freecom
[ 4.992313] usbcore: registered new interface driver ums-isd200
[ 4.993929] usbcore: registered new interface driver ums-jumpshot
[ 4.995530] usbcore: registered new interface driver ums-karma
[ 4.997014] usbcore: registered new interface driver ums-onetouch
[ 4.998387] usbcore: registered new interface driver ums-realtek
[ 4.999705] usbcore: registered new interface driver ums-sddr09
[ 5.000920] usbcore: registered new interface driver ums-sddr55
[ 5.002049] usbcore: registered new interface driver ums-usbat
[ 5.003533] mousedev: PS/2 mouse device common for all mice
[ 5.006158] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 5.007943] device-mapper: uevent: version 1.0.3
[ 5.009543] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[ 5.012917] device-mapper: multipath round-robin: version 1.2.0 loaded
[ 5.014339] device-mapper: multipath queue-length: version 0.2.0 loaded
[ 5.015780] device-mapper: multipath service-time: version 0.3.0 loaded
[ 5.017227] device-mapper: raid: Loading target version 1.15.1
[ 5.020883] sdhci: Secure Digital Host Controller Interface driver
[ 5.022567] sdhci: Copyright(c) Pierre Ossman
[ 5.024636] Error: Driver 'sdhost-bcm2835' is already registered, aborting...
[ 5.025854] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.028211] ledtrig-cpu: registered to indicate activity on CPUs
[ 5.029788] hid: raw HID events driver (C) Jiri Kosina
[ 5.031455] usbcore: registered new interface driver usbhid
[ 5.032902] usbhid: USB HID core driver
[ 5.037868] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 5.039444] [vc_sm_connected_init]: start
[ 5.043763] [vc_sm_connected_init]: installed successfully
[ 5.045729] Initializing XFRM netlink socket
[ 5.047325] NET: Registered PF_PACKET protocol family
[ 5.049195] Key type dns_resolver registered
[ 5.050984] Registering SWP/SWPB emulation handler
[ 5.065166] registered taskstats version 1
[ 5.066713] Loading compiled-in X.509 certificates
[ 5.068720] Key type ._fscrypt registered
[ 5.070171] Key type .fscrypt registered
[ 5.071632] Key type fscrypt-provisioning registered
[ 5.074300] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[ 5.076030] Key type encrypted registered
[ 5.083303] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[ 6.326290] printk: console [ttyAMA0] enabled
[ 6.335279] of_cfs_init
[ 6.339346] of_cfs_init: OK
[ 6.344406] uart-pl011 3f201000.serial: no DMA platform data
[ 6.354836] Freeing unused kernel image (initmem) memory: 2048K
[ 6.382110] Run /init as init process
[ 6.387801] with arguments:
[ 6.387809] /init
[ 6.387816] with environment:
[ 6.387823] HOME=/
[ 6.387830] TERM=linux
')
does anyone has any ideas?? it's working if you boot from mmc. the whole point is that you load uboot from mmc and inside uboot environment you could load the files from usb device!!! if all goes well you boot technically from usb, write to usb and you avoid flash degradation from read/writes.
thank you in advance!!