使用基于buildroot-tiny200-master编译,生成sysimage-nor.img和sysimage-sdcard.img
系统都能正常启动,TF卡运行时,外接接的USB HUB+4G+WIFI都能正常工作.
但在SPI运行sysimage-nor.img时,USB设备就无法识别.lsusb也只有一个usb设备.
一直搞不定,求大神指导...
SPI的启动脚本:
$ cat rootfs/preinit
#!/bin/sh
mount proc /proc -t proc
set -- $(cat /proc/cmdline)
umount /proc
for x in "$@"; do
case "$x" in
overlayfsdev=*)
OVERLAYFSDEV="${x#overlayfsdev=}"
mount -n -t jffs2 ${OVERLAYFSDEV} -o rw,noatime /overlay
mkdir -p /overlay/rom/lower /overlay/rom/upper /overlay/rom/work
mount --rbind / /overlay/rom/lower
mount -n -t overlay overlayfs:/overlay/rom -o rw,noatime,lowerdir=/overlay/rom/lower,upperdir=/overlay/rom/upper,workdir=/overlay/rom/work /tmp
mount --rbind /dev /tmp/dev/
mount --rbind /overlay /tmp/overlay/
exec chroot /tmp /sbin/init
;;
esac
done
exec /sbin/init
打包配置:
$ cat genimage-nor.cfg
flash nor-16M {
pebsize = 64K
numpebs = 256
minimum-io-unit-size = 256
}
image sysimage-nor.img {
flash {}
flashtype = "nor-16M"
partition u-boot {
image = "u-boot-sunxi-with-spl.bin"
size = 512K
}
partition splash {
offset = 0x80000
image = "splash.bmp"
size = 512K
}
partition kernel {
offset = 0x100000
image = "kernel.itb"
size = 5M
}
partition rom {
offset = 0x600000
image = "rootfs.squashfs"
}
}
最近编辑记录 flyaqiao (2023-10-08 15:10:21)
离线
$ ls output/images/ -la
总计 302M
drwxr-xr-x 2 flyaqiao flyaqiao 1M 10月 8 22:33 .
drwxrwxr-x 6 flyaqiao flyaqiao 1M 9月 27 21:42 ..
-rw-r--r-- 1 flyaqiao flyaqiao 8M 10月 8 22:33 bootfs.vfat
-rwxr-xr-x 1 flyaqiao flyaqiao 1M 10月 8 22:32 devicetree.dtb
-rw-r--r-- 1 flyaqiao flyaqiao 5M 10月 8 22:33 kernel.itb
-rw-r--r-- 1 flyaqiao flyaqiao 26M 10月 8 22:33 rootfs.cpio
-rw-r--r-- 1 flyaqiao flyaqiao 7M 10月 8 22:33 rootfs.cpio.gz
-rw-r--r-- 1 flyaqiao flyaqiao 100M 10月 8 22:33 rootfs.ext2
lrwxrwxrwx 1 flyaqiao flyaqiao 1M 10月 8 22:33 rootfs.ext4 -> rootfs.ext2
-rw-r--r-- 1 flyaqiao flyaqiao 9M 9月 27 23:58 rootfs.jffs2
-rw-r--r-- 1 flyaqiao flyaqiao 7M 10月 8 22:33 rootfs.squashfs
-rw-r--r-- 1 flyaqiao flyaqiao 29M 10月 8 22:33 rootfs.tar
-rw-r--r-- 1 flyaqiao flyaqiao 7M 9月 27 23:59 rootfs.tar.gz
-rw-r--r-- 1 flyaqiao flyaqiao 1M 10月 8 22:33 splash.bmp
-rw-r--r-- 1 flyaqiao flyaqiao 128M 10月 8 22:33 sysimage-nand.img
-rw-r--r-- 1 flyaqiao flyaqiao 16M 10月 8 22:33 sysimage-nor.img
-rw-r--r-- 1 flyaqiao flyaqiao 109M 10月 8 22:33 sysimage-sdcard.img
-rw-r--r-- 1 flyaqiao flyaqiao 1M 10月 8 22:31 u-boot.bin
-rw-r--r-- 1 flyaqiao flyaqiao 1M 10月 8 22:33 u-boot-sunxi-with-nand-spl.bin
-rw-r--r-- 1 flyaqiao flyaqiao 1M 10月 8 22:31 u-boot-sunxi-with-spl.bin
-rw-r--r-- 1 flyaqiao flyaqiao 5M 10月 8 22:32 zImage
我看了,TF卡上和NOR FLASH上都是加载kernel.itb文件.
离线
[20231008_22:48:02.948]U-Boot SPL 2020.07 (Oct 08 2023 - 21:45:53 +0800)
[20231008_22:48:02.948]DRAM: 32 MiB
[20231008_22:48:02.948]Trying to boot from MMC1
[20231008_22:48:02.973]Card did not respond to voltage select!
[20231008_22:48:02.973]spl: mmc init failed with error: -95
[20231008_22:48:02.973]Trying to boot from MMC2
[20231008_22:48:02.994]Card did not respond to voltage select!
[20231008_22:48:02.995]spl: mmc init failed with error: -95
[20231008_22:48:02.995]Trying to boot from sunxi SPI
[20231008_22:48:03.690]
[20231008_22:48:03.690]
[20231008_22:48:03.690]U-Boot 2020.07 (Oct 08 2023 - 21:45:53 +0800) Allwinner Technology
[20231008_22:48:03.690]
[20231008_22:48:03.690]CPU: Allwinner F Series (SUNIV)
[20231008_22:48:03.710]Model: Allwinner F1C100s Generic Device
[20231008_22:48:03.711]DRAM: 32 MiB
[20231008_22:48:04.279]MMC: mmc@1c0f000: 0, mmc@1c10000: 1
[20231008_22:48:04.279]Setting up a 480x272 lcd console (overscan 0x0)
[20231008_22:48:04.357]In: serial
[20231008_22:48:04.357]Out: serial
[20231008_22:48:04.357]Err: serial
[20231008_22:48:04.394]Allwinner mUSB OTG (Peripheral)
[20231008_22:48:04.394]Hit any key to stop autoboot: 0
[20231008_22:48:04.394]Card did not respond to voltage select!
[20231008_22:48:04.403]Card did not respond to voltage select!
[20231008_22:48:04.412]SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[20231008_22:48:04.412]=========================
[20231008_22:48:04.412]Boot Device: spi
[20231008_22:48:04.423]Boot Slot 0: empty
[20231008_22:48:04.424]Boot Slot 1: spi-nor
[20231008_22:48:04.424]=========================
[20231008_22:48:04.449]SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[20231008_22:48:04.449]device 0 offset 0x80000, size 0x80000
[20231008_22:48:05.079]SF: 524288 bytes @ 0x80000 Read: OK
[20231008_22:48:05.094]gpio: pin 134 (gpio 134) value is 1
[20231008_22:48:05.094]DFU waiting on SPI-NOR...
[20231008_22:48:08.096]Booting from SPI-NOR...
[20231008_22:48:08.096]SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[20231008_22:48:08.111]device 0 offset 0x100000, size 0x500000
[20231008_22:48:14.516]SF: 5242880 bytes @ 0x100000 Read: OK
[20231008_22:48:14.516]## Loading kernel from FIT Image at 81000000 ...
[20231008_22:48:14.516] Using 'conf@0' configuration
[20231008_22:48:14.528] Trying 'kernel@0' kernel subimage
[20231008_22:48:14.528] Description: Linux kernel
[20231008_22:48:14.528] Type: Kernel Image
[20231008_22:48:14.538] Compression: uncompressed
[20231008_22:48:14.538] Data Start: 0x810000cc
[20231008_22:48:14.538] Data Size: 4889960 Bytes = 4.7 MiB
[20231008_22:48:14.538] Architecture: ARM
[20231008_22:48:14.538] OS: Linux
[20231008_22:48:14.549] Load Address: 0x80000000
[20231008_22:48:14.549] Entry Point: 0x80000000
[20231008_22:48:14.549] Hash algo: crc32
[20231008_22:48:14.549] Hash value: 16e86f7f
[20231008_22:48:14.697] Verifying Hash Integrity ... crc32+ OK
[20231008_22:48:14.697]## Loading fdt from FIT Image at 81000000 ...
[20231008_22:48:14.697] Using 'conf@0' configuration
[20231008_22:48:14.697] Trying 'fdt@0' fdt subimage
[20231008_22:48:14.708] Description: Flattened Device Tree blob
[20231008_22:48:14.708] Type: Flat Device Tree
[20231008_22:48:14.708] Compression: uncompressed
[20231008_22:48:14.719] Data Start: 0x814a9f18
[20231008_22:48:14.719] Data Size: 14403 Bytes = 14.1 KiB
[20231008_22:48:14.719] Architecture: ARM
[20231008_22:48:14.719] Hash algo: crc32
[20231008_22:48:14.749] Hash value: 922387f9
[20231008_22:48:14.749] Verifying Hash Integrity ... crc32+ OK
[20231008_22:48:14.749] Booting using the fdt blob at 0x814a9f18
[20231008_22:48:14.749] Loading Kernel Image
[20231008_22:48:14.827] Loading Device Tree to 817f9000, end 817ff842 ... OK
[20231008_22:48:14.827]
[20231008_22:48:14.827]Starting kernel ...
[20231008_22:48:14.828]
[20231008_22:48:16.211][ 0.000000] Booting Linux on physical CPU 0x0
[20231008_22:48:16.222][ 0.000000] Linux version 5.4.238 (flyaqiao@flyaqiao-laptop) (gcc version 11.4.0 (Buildroot V0.2-26-ga9dc63bf80)) #10 Sat Oct 7 19:48:18 CST 2023
[20231008_22:48:16.233][ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[20231008_22:48:16.233][ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[20231008_22:48:16.244][ 0.000000] OF: fdt: Machine model: Sipeed Lichee Nano
[20231008_22:48:16.244][ 0.000000] Memory policy: Data cache writeback
[20231008_22:48:16.245][ 0.000000] cma: Failed to reserve 16 MiB
[20231008_22:48:16.255][ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8001
[20231008_22:48:16.267][ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3 net.ifnames=0 vt.global_cursor_default=0
[20231008_22:48:16.277][ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[20231008_22:48:16.289][ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[20231008_22:48:16.289][ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[20231008_22:48:16.312][ 0.000000] Memory: 20036K/32256K available (7168K kernel code, 307K rwdata, 1908K rodata, 1024K init, 234K bss, 12220K reserved, 0K cma-reserved)
[20231008_22:48:16.312][ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[20231008_22:48:16.322][ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[20231008_22:48:16.322][ 0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[20231008_22:48:16.333][ 0.000124] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[20231008_22:48:16.344][ 0.000945] Console: colour dummy device 80x30
[20231008_22:48:16.344][ 0.001048] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[20231008_22:48:16.355][ 0.070243] pid_max: default: 32768 minimum: 301
[20231008_22:48:16.355][ 0.070711] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.366][ 0.070750] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.366][ 0.072486] CPU: Testing write buffer coherency: ok
[20231008_22:48:16.377][ 0.074981] Setting up static identity map for 0x80100000 - 0x80100058
[20231008_22:48:16.377][ 0.076423] devtmpfs: initialized
[20231008_22:48:16.388][ 0.086794] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[20231008_22:48:16.399][ 0.086859] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[20231008_22:48:16.399][ 0.087142] pinctrl core: initialized pinctrl subsystem
[20231008_22:48:16.410][ 0.090778] NET: Registered protocol family 16
[20231008_22:48:16.411][ 0.092297] DMA: preallocated 256 KiB pool for atomic coherent allocations
[20231008_22:48:16.421][ 0.094460] cpuidle: using governor menu
[20231008_22:48:16.421][ 0.137669] SCSI subsystem initialized
[20231008_22:48:16.422][ 0.138425] usbcore: registered new interface driver usbfs
[20231008_22:48:16.433][ 0.138589] usbcore: registered new interface driver hub
[20231008_22:48:16.433][ 0.138748] usbcore: registered new device driver usb
[20231008_22:48:16.444][ 0.139292] mc: Linux media interface: v0.10
[20231008_22:48:16.444][ 0.139405] videodev: Linux video capture interface: v2.00
[20231008_22:48:16.455][ 0.139531] pps_core: LinuxPPS API ver. 1 registered
[20231008_22:48:16.455][ 0.139551] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[20231008_22:48:16.466][ 0.139609] PTP clock support registered
[20231008_22:48:16.466][ 0.140365] Advanced Linux Sound Architecture Driver Initialized.
[20231008_22:48:16.478][ 0.143219] clocksource: Switched to clocksource timer
[20231008_22:48:16.488][ 0.144872] simple-framebuffer 81f80000.framebuffer: framebuffer at 0x81f80000, 0x7f800 bytes, mapped to 0x(ptrval)
[20231008_22:48:16.500][ 0.144927] simple-framebuffer 81f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[20231008_22:48:16.500][ 0.154326] Console: switching to colour frame buffer device 60x34
[20231008_22:48:16.511][ 0.162567] simple-framebuffer 81f80000.framebuffer: fb0: simplefb registered!
[20231008_22:48:16.511][ 0.190275] thermal_sys: Registered thermal governor 'step_wise'
[20231008_22:48:16.522][ 0.191014] NET: Registered protocol family 2
[20231008_22:48:16.522][ 0.191623] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[20231008_22:48:16.533][ 0.192938] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.544][ 0.193060] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.544][ 0.193114] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.555][ 0.193159] TCP: Hash tables configured (established 1024 bind 1024)
[20231008_22:48:16.567][ 0.193565] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.567][ 0.193633] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[20231008_22:48:16.578][ 0.194218] NET: Registered protocol family 1
[20231008_22:48:16.578][ 0.196027] RPC: Registered named UNIX socket transport module.
[20231008_22:48:16.589][ 0.196070] RPC: Registered udp transport module.
[20231008_22:48:16.589][ 0.196086] RPC: Registered tcp transport module.
[20231008_22:48:16.600][ 0.196102] RPC: Registered tcp NFSv4.1 backchannel transport module.
[20231008_22:48:16.600][ 0.198418] NetWinder Floating Point Emulator V0.97 (double precision)
[20231008_22:48:16.612][ 0.200218] Initialise system trusted keyrings
[20231008_22:48:16.612][ 0.201167] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[20231008_22:48:16.622][ 0.222525] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[20231008_22:48:16.622][ 0.225319] jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
[20231008_22:48:16.633][ 0.334112] Key type asymmetric registered
[20231008_22:48:16.634][ 0.334156] Asymmetric key parser 'x509' registered
[20231008_22:48:16.645][ 0.334355] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[20231008_22:48:16.645][ 0.334386] io scheduler mq-deadline registered
[20231008_22:48:16.655][ 0.334406] io scheduler kyber registered
[20231008_22:48:16.655][ 0.336423] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[20231008_22:48:16.667][ 0.347203] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[20231008_22:48:16.678][ 0.348099] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[20231008_22:48:16.689][ 0.348459] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[20231008_22:48:16.689][ 0.370194] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[20231008_22:48:16.700][ 0.376953] printk: console [ttyS0] disabled
[20231008_22:48:16.700][ 0.397272] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[20231008_22:48:16.723][ 0.895964] printk: console [ttyS0] enabled
[20231008_22:48:16.723][ 0.909335] SCSI Media Changer driver v0.25
[20231008_22:48:16.740][ 0.915325] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[20231008_22:48:16.740][ 0.928397] spi-nor spi0.0: w25q128 (16384 Kbytes)
[20231008_22:48:16.752][ 0.934717] 4 fixed-partitions partitions found on MTD device spi0.0
[20231008_22:48:16.752][ 0.941074] Creating 4 MTD partitions on "spi0.0":
[20231008_22:48:16.769][ 0.945986] 0x000000000000-0x000000070000 : "u-boot"
[20231008_22:48:16.769][ 0.954851] 0x000000100000-0x000000600000 : "kernel"
[20231008_22:48:16.791][ 0.963685] 0x000000600000-0x000000e00000 : "rom"
[20231008_22:48:16.791][ 0.972104] 0x000000e00000-0x000001000000 : "overlay"
[20231008_22:48:16.802][ 0.982232] usbcore: registered new interface driver mt7601u
[20231008_22:48:16.802][ 0.988239] usbcore: registered new interface driver rtl8192cu
[20231008_22:48:16.815][ 0.994305] usbcore: registered new interface driver rtl8xxxu
[20231008_22:48:16.815][ 1.000186] usbcore: registered new interface driver rndis_wlan
[20231008_22:48:16.826][ 1.006332] usbcore: registered new interface driver asix
[20231008_22:48:16.826][ 1.011886] usbcore: registered new interface driver ax88179_178a
[20231008_22:48:16.837][ 1.018188] usbcore: registered new interface driver cdc_ether
[20231008_22:48:16.837][ 1.024248] usbcore: registered new interface driver net1080
[20231008_22:48:16.847][ 1.030017] usbcore: registered new interface driver rndis_host
[20231008_22:48:16.847][ 1.036135] usbcore: registered new interface driver cdc_subset
[20231008_22:48:16.859][ 1.042161] usbcore: registered new interface driver zaurus
[20231008_22:48:16.859][ 1.048079] usbcore: registered new interface driver cdc_ncm
[20231008_22:48:16.870][ 1.053828] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[20231008_22:48:16.871][ 1.060344] ehci-platform: EHCI generic platform driver
[20231008_22:48:16.882][ 1.065935] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[20231008_22:48:16.882][ 1.072194] ohci-platform: OHCI generic platform driver
[20231008_22:48:16.894][ 1.077947] usbcore: registered new interface driver usb-storage
[20231008_22:48:16.913][ 1.084338] usbcore: registered new interface driver option
[20231008_22:48:16.913][ 1.089985] usbserial: USB Serial support registered for GSM modem (1-port)
[20231008_22:48:16.913][ 1.100326] i2c /dev entries driver
[20231008_22:48:16.925][ 1.107507] at24 0-0050: 65536 byte 24c512 EEPROM, writable, 1 bytes/write
[20231008_22:48:16.941][ 1.117390] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[20231008_22:48:16.941][ 1.125467] rtc-pcf8563 0-0051: registered as rtc0
[20231008_22:48:16.953][ 1.133147] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[20231008_22:48:16.967][ 1.142988] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[20231008_22:48:16.998][ 1.181065] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[20231008_22:48:17.015][ 1.190462] usbcore: registered new interface driver usbhid
[20231008_22:48:17.016][ 1.196168] usbhid: USB HID core driver
[20231008_22:48:17.016][ 1.204936] NET: Registered protocol family 17
[20231008_22:48:17.026][ 1.209437] lib80211: common routines for IEEE802.11 drivers
[20231008_22:48:17.026][ 1.215419] Key type dns_resolver registered
[20231008_22:48:17.054][ 1.220975] Loading compiled-in X.509 certificates
[20231008_22:48:17.066][ 1.241090] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[20231008_22:48:17.066][ 1.252992] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[20231008_22:48:17.081][ 1.258968] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[20231008_22:48:17.081][ 1.270008] hub 1-0:1.0: USB hub found
[20231008_22:48:17.094][ 1.274088] hub 1-0:1.0: 1 port detected
[20231008_22:48:17.094][ 1.281136] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[20231008_22:48:17.107][ 1.288667] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[20231008_22:48:17.128][ 1.296281] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[20231008_22:48:17.128][ 1.314309] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[20231008_22:48:17.139][ 1.321505] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[20231008_22:48:17.139][ 1.330240] cfg80211: failed to load regulatory.db
[20231008_22:48:17.158][ 1.335294] ALSA device list:
[20231008_22:48:17.158][ 1.338275] No soundcards found.
[20231008_22:48:17.181][ 1.348462] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[20231008_22:48:17.181][ 1.363560] devtmpfs: mounted
[20231008_22:48:17.181][ 1.371165] Freeing unused kernel memory: 1024K
[20231008_22:48:17.203][ 1.375901] Run /preinit as init process
[20231008_22:48:17.595][ 1.773398] random: crng init done
[20231008_22:48:18.212][ 2.399460] overlayfs: upper fs does not support tmpfile.
[20231008_22:48:18.224][ 2.405007] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[20231008_22:48:18.717]Starting syslogd: OK
[20231008_22:48:18.778]Starting klogd: OK
[20231008_22:48:19.042]Running sysctl: OK
[20231008_22:48:19.327]Populating /dev using udev: [ 3.498121] udevd[97]: starting version 3.2.11
[20231008_22:48:19.467][ 3.650272] udevd[98]: starting eudev-3.2.11
[20231008_22:48:22.561]done
[20231008_22:48:22.670]Seeding 256 bits and crediting
[20231008_22:48:22.670]Saving 256 bits of creditable seed for next boot
[20231008_22:48:22.813]Starting haveged: haveged: command socket is listening at fd 3
[20231008_22:48:22.813]OK
[20231008_22:48:23.530]Starting network: ip: SIOCGIFFLAGS: No such device
[20231008_22:48:23.799]ip: SIOCGIFFLAGS: No such device
[20231008_22:48:23.799]FAIL
[20231008_22:48:24.003]Starting uMTPrd: [ 8.178377] file system registered
[20231008_22:48:24.316][ 8.497163] read descriptors
[20231008_22:48:24.316][ 8.500110] read strings
[20231008_22:48:25.307]OK
[20231008_22:48:25.385]Starting kitedtu: OK
[20231008_22:48:25.543]
[20231008_22:48:25.544]Welcome to Sipeed Lichee Nano
[20231008_22:48:27.844]lichee-nano login: [ 12.020873] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
这是启动的输出
最近编辑记录 flyaqiao (2023-10-08 22:54:25)
离线
root@lichee-nano ~
$ lsusb
Bus 001 Device 001: ID 1d6b:0002
root@lichee-nano ~
只有一个设备
离线
确定两个镜像里DTB相同吗
拿dtc命令反编译对比下
谢谢,问题已解决
离线
问题是设备树中的内核地址和uboot参数中的内核地址不一样,很奇怪这种情况系统能正常启动
diff --git a/board/sipeed/lichee/nano/devicetree/linux/devicetree.dts b/board/sipeed/lichee/nano/devicetree/linux/devicetree.dts
index 93aa99c57b..6e432c250b 100644
--- a/board/sipeed/lichee/nano/devicetree/linux/devicetree.dts
+++ b/board/sipeed/lichee/nano/devicetree/linux/devicetree.dts
@@ -78,19 +78,19 @@
partition@1 {
label = "kernel";
- reg = <0x70000 0x590000>;
+ reg = <0x100000 0x500000>;
read-only;
};
partition@2 {
label = "rom";
- reg = <0x600000 0x700000>;
+ reg = <0x600000 0x800000>;
read-only;
};
partition@3 {
label = "overlay";
- reg = <0xd00000 0x300000>;
+ reg = <0xE00000 0x200000>;
};
};
};
uboot中内核地址是:sf_kernel_offset=0x100000
但usb也必须配置成otg模式,没想通.改成host就不能识别了
&usb_otg {
- dr_mode = "host"; /* otg host peripheral */
+ dr_mode = "otg"; /* otg host peripheral */
status = "okay";
};
最近编辑记录 flyaqiao (2023-10-26 22:59:08)
离线