sunxi-fel.exe -p spiflash-write 0 u-boot-sunxi-with-spl.bin
sunxi-fel.exe -p spiflash-write 0x100000 zImage.bin
sunxi-fel.exe -p spiflash-write 0x350000 dtb.bin
sunxi-fel.exe -p spiflash-write 0x400000 rootfs_jffs2.bin
是这样吗? 有没有通过的文件,我测试下,是我编译错误还是什么问题
BOOT启动后无反应
starting USB...
No controllers found
Hit any key to stop autoboot: 2 1 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
=>
离线
Hit any key to stop autoboot: 0
=> printenv bootcmd
bootcmd=sf probe 0; sf read 0x41800000 0x100000 0x10000; sf read 0x41000000 0x110000 0x400000; bootz 0x41000000 - 0x41800000
=> printenv bootargs
bootargs=console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
=>
离线
=> bootz 0x41000000 - 0x41800000
=> bootz 0x41000000 - 0x41800000
=>
=>
=>
=>
=>
=> bootz 0x41000000 - 0x41800000
=>
没有反应
离线
zImage 弄错了,这个文件是arch/arm/boot下的?这个文件有3.9MB
"sunxi-fel.exe -p spiflash-write 0x100000 zImage.bin
sunxi-fel.exe -p spiflash-write 0x350000 dtb.bin"
这个范围不够存放?
离线
写进去了,读出来了 。但是zImage是3.9MB。
读出来的数据0x250000后面就是dtb的文件内容。前面的数据还不够zImage存放的
离线
这个没有弄懂
#define CONFIG_BOOTCOMMAND "sf probe 0; " \
"sf read 0x41800000 0x100000 0x10000; " \
"sf read 0x41000000 0x110000 0x400000; " \
"bootz 0x41000000 - 0x41800000"
#define CONFIG_BOOTARGS "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
"mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2"
离线
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero+ (root@ubuntu) (gcc version 4.8. 4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #1 SMP Thu Sep 13 08:58:50 +08 2018
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction c ache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwa it mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53580K/64036K available (6144K kernel code, 217K rwdata, 143 6K rodata, 1024K init, 262K bss, 10456K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a367c0 ( 218 kB)
[ 0.000000] .bss : 0xc0a3d874 - 0xc0a7f1fc ( 263 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x 588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 43980465 11097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000178] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idl e_ns: 79635851949 ns
[ 0.000411] Console: colour dummy device 80x30
[ 0.000449] Calibrating delay loop (skipped), value calculated using timer frequ ency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000466] pid_max: default: 32768 minimum: 301
[ 0.000587] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000603] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001208] CPU: Testing write buffer coherency: ok
[ 0.001588] /cpus/cpu@0 missing clock-frequency property
[ 0.001612] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002064] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002247] Hierarchical SRCU implementation.
[ 0.002734] smp: Bringing up secondary CPUs ...
[ 0.002750] smp: Brought up 1 node, 1 CPU
[ 0.002759] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002766] CPU: All CPU(s) started in SVC mode.
[ 0.003529] devtmpfs: initialized
[ 0.006657] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 re v 5
[ 0.006953] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_i dle_ns: 19112604462750000 ns
[ 0.006981] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007144] pinctrl core: initialized pinctrl subsystem
[ 0.008016] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 wit h crng_init=0
[ 0.008160] NET: Registered protocol family 16
[ 0.008646] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009767] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint reg isters.
[ 0.009785] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.022979] SCSI subsystem initialized
[ 0.023282] usbcore: registered new interface driver usbfs
[ 0.023352] usbcore: registered new interface driver hub
[ 0.023446] usbcore: registered new device driver usb
[ 0.023719] pps_core: LinuxPPS API ver. 1 registered
[ 0.023730] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.023753] PTP clock support registered
[ 0.023970] Advanced Linux Sound Architecture Driver Initialized.
[ 0.025856] clocksource: Switched to clocksource arch_sys_counter
[ 0.036844] NET: Registered protocol family 2
[ 0.037454] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037492] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037516] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037646] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037697] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037904] NET: Registered protocol family 1
[ 0.038501] RPC: Registered named UNIX socket transport module.
[ 0.038523] RPC: Registered udp transport module.
[ 0.038530] RPC: Registered tcp transport module.
[ 0.038536] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040660] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049692] NFS: Registering the id_resolver key type
[ 0.049751] Key type id_resolver registered
[ 0.049759] Key type id_legacy registered
[ 0.050689] random: fast init done
[ 0.053483] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053503] io scheduler noop registered
[ 0.053511] io scheduler deadline registered
[ 0.053747] io scheduler cfq registered (default)
[ 0.053759] io scheduler mq-deadline registered
[ 0.053766] io scheduler kyber registered
[ 0.058262] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.058767] pwm-backlight backlight: backlight supply power not found, using dum my regulator
[ 0.129113] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.132531] console [ttyS0] disabled
[ 0.152807] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 15000 00) is a U6_16550A
[ 0.743666] console [ttyS0] enabled
[ 0.748421] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[ 0.756171] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[ 0.763825] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[ 0.771495] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[ 0.779159] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[ 0.786820] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[ 0.794469] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[ 0.802128] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[ 0.809787] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[ 0.817445] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[ 0.825092] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[ 0.832838] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[ 0.840584] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[ 0.848330] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[ 0.856075] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[ 0.863811] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[ 0.871557] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[ 0.879302] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[ 0.887048] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[ 0.894784] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[ 0.902530] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[ 0.910276] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[ 0.919538] panel-simple panel: panel supply power not found, using dummy regula tor
[ 0.928724] libphy: Fixed MDIO Bus: probed
[ 0.933200] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.939815] ehci-platform: EHCI generic platform driver
[ 0.945311] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.950981] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus numb er 1
[ 0.958910] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.985904] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.993086] hub 1-0:1.0: USB hub found
[ 0.997047] hub 1-0:1.0: 1 port detected
[ 1.001533] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.007845] ohci-platform: OHCI generic platform driver
[ 1.013421] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.020153] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus numb er 2
[ 1.028081] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.100935] hub 2-0:1.0: USB hub found
[ 1.104761] hub 2-0:1.0: 1 port detected
[ 1.112361] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.122116] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.129021] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.133572] i2c /dev entries driver
[ 1.138581] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/i nput/input0
[ 1.148153] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayo ut=0)
[ 1.216095] sunxi-mmc 1c0f000.mmc: base:0xc4069000 irq:24
[ 1.223216] usbcore: registered new interface driver usbhid
[ 1.228890] usbhid: USB HID core driver
[ 1.234669] NET: Registered protocol family 17
[ 1.239357] Key type dns_resolver registered
[ 1.243780] Registering SWP/SWPB emulation handler
[ 1.254382] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[ 1.265034] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x4 80x32, linelength=3200
[ 1.283365] Console: switching to colour frame buffer device 100x30
[ 1.295908] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.303984] pwm-backlight backlight: backlight supply power not found, using dum my regulator
[ 1.313578] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[ 1.321349] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[ 1.329032] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[ 1.336700] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[ 1.344350] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[ 1.352012] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[ 1.359674] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[ 1.367334] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[ 1.374983] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[ 1.382643] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[ 1.390304] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[ 1.398051] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[ 1.405786] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[ 1.413533] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[ 1.421279] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[ 1.429025] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[ 1.436771] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[ 1.444506] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[ 1.452252] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[ 1.459999] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[ 1.467746] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[ 1.475482] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[ 1.483616] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.490361] [drm] No driver support for vblank timestamp query.
[ 1.505707] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc073eff4)
[ 1.513114] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073de 74)
[ 1.520858] fb: switching to sun4i-drm-fb from simple
[ 1.526055] Console: switching to colour dummy device 80x30
我也还有坑,调好传给你
离线
在公司电脑中,明天有事,等去公司后再发你
离线
1.404856] vcc3v3: disabling
[ 1.407890] vcc5v0: disabling
[ 1.410859] ALSA device list:
[ 1.413822] #0: V3s Audio Codec
[ 1.418373] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[ 1.425944] Please append a correct "root=" boot option; here are the available partitions:
[ 1.434392] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.442740] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero-with-800x480-lcd+ #2
///我也没有搞定,这个jffs2也有问题
离线