如果题。我先说一下我的情况。1,我直接用官方的Lichee Zero\dd_img\brmin_dd\lichee_zero-brmin_alpha.dd直接烧到T卡,可以正常启动动。2。我直接用官方的\Lichee Zero\image_collect\V3s+littlevgl 固件\littlevgl.bin烧写Flash,也是正常的。可以进行命令行。 3,我用\Lichee Zero\image_collect\v3s-rtl8723bs\下的uboot+Zimage+Rootfs,可以正常运行,但有一点,这个ZImage有8M多。所以我把rootfs烧写在了0x910000的位置,能正常工作。随后,我更新一下我自己打包的tar,也可以正常运行,但这个根文件系统中却没有我自己添加进去的目录。也就意味着,我后面烧的910000位置的rootfs根本是不起作用的。后来我单独刷用官方的Uboot:u-boot-sunxi-with-spl-vga.bin,无法启动。,。然后我改用根据官方添加的32M的那个
#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" (修改了root=/dev/ram0)能启动zImage。系统运行到最后,但是进不了命令行。。根文件系统用E:\vmware-ubuntu14.1\vmware-share\Lichee Zero\image_collect\v3s-rtl8723bs\rootfs.tar。
此后,我不断尝试,更换Uboot,dbt,zImage,Rootfs,都无法进入。包括用官方的其他散装包。 我的需要其实比较简单,就是想能用自己的tar包,把自己的文件打包到tar中去,这样在inittab中设置启动,事情就OK了,奈何一直无法实现。哪位有经验帮我看看看。谢谢了。
离线
[ 1.066942] hub 1-0:1.0: 1 port detected
[ 1.071616] using random self ethernet address
[ 1.076198] using random host ethernet address
[ 1.081606] usb0: HOST MAC 02:6c:63:7a:24:c5
[ 1.086102] usb0: MAC f2:58:cc:b7:95:4d
[ 1.089985] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.097511] g_cdc gadget: g_cdc ready
[ 1.103696] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.112723] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:10 UTC (70)
[ 1.121057] vcc5v0: disabling
[ 1.124033] ALSA device list:
[ 1.127071] #0: V3s Audio Codec
[ 1.131308] Waiting for root device /dev/ram0...
[ 3.203444] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
[ 4.315418] random: fast init done
每次都能运行到这里。
就是不出现登录提示符
离线
离线
是不是要求、inittab中的那句,必须与sun8i.h中的那句保持一致?
离线
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 28 2017 - 15:38:11 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 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 0x800000
SF: 8388608 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dff42d ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.10.2-licheepi-zero+ (zp@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #15 SMP Sat Apr 15 21:38:23 CST 2017
[ 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 cache
[ 0.000000] OF: fdt:Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 14 pages/cpu @c3dea000 s24652 r8192 d24500 u57344
[ 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 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/ram0 rdinit=/sbin/init vt.global_cursor_default=0
[ 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: 53628K/64036K available (6144K kernel code, 213K rwdata, 1472K rodata, 1024K init, 260K bss, 10408K 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 - 0xc0a35600 ( 214 kB)
[ 0.000000] .bss : 0xc0a37000 - 0xc0a781cc ( 261 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000147] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000360] Console: colour dummy device 80x30
[ 0.000397] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000413] pid_max: default: 32768 minimum: 301
[ 0.000560] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000573] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001290] CPU: Testing write buffer coherency: ok
[ 0.001702] /cpus/cpu@0 missing clock-frequency property
[ 0.001725] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002113] Setting up static identity map for 0x40100000 - 0x40100058
[ 0.002878] smp: Bringing up secondary CPUs ...
[ 0.002899] smp: Brought up 1 node, 1 CPU
[ 0.002910] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002917] CPU: All CPU(s) started in SVC mode.
[ 0.003703] devtmpfs: initialized
[ 0.006621] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006901] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006929] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007091] pinctrl core: initialized pinctrl subsystem
[ 0.008108] NET: Registered protocol family 16
[ 0.008599] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009837] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009853] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.021918] SCSI subsystem initialized
[ 0.022215] usbcore: registered new interface driver usbfs
[ 0.022278] usbcore: registered new interface driver hub
[ 0.022391] usbcore: registered new device driver usb
[ 0.022617] pps_core: LinuxPPS API ver. 1 registered
[ 0.022626] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.022648] PTP clock support registered
[ 0.022887] Advanced Linux Sound Architecture Driver Initialized.
[ 0.024724] clocksource: Switched to clocksource arch_sys_counter
[ 0.025547] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[ 0.025568] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 0.032433] Console: switching to colour frame buffer device 100x30
[ 0.038571] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 0.048670] NET: Registered protocol family 2
[ 0.049298] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.049331] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.049356] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.049451] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.049501] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.049714] NET: Registered protocol family 1
[ 0.050363] RPC: Registered named UNIX socket transport module.
[ 0.050384] RPC: Registered udp transport module.
[ 0.050390] RPC: Registered tcp transport module.
[ 0.050395] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.052671] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.061817] NFS: Registering the id_resolver key type
[ 0.061867] Key type id_resolver registered
[ 0.061875] Key type id_legacy registered
[ 0.061924] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.066579] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.066601] io scheduler noop registered
[ 0.066608] io scheduler deadline registered
[ 0.066794] io scheduler cfq registered (default)
[ 0.070935] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.140170] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.143372] console [ttyS0] disabled
[ 0.163666] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[ 0.762444] console [ttyS0] enabled
[ 0.766645] [drm] Initialized
[ 0.771510] libphy: Fixed MDIO Bus: probed
[ 0.776034] usbcore: registered new interface driver r8152
[ 0.781522] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.788096] ehci-platform: EHCI generic platform driver
[ 0.793421] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.799652] ohci-platform: OHCI generic platform driver
[ 0.805057] usbcore: registered new interface driver usb-storage
[ 0.811096] usbcore: registered new interface driver ums-freecom
[ 0.817556] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 0.827083] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 0.836053] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.842850] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.847509] i2c /dev entries driver
[ 0.852344] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 0.861969] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.924763] sunxi-mmc 1c0f000.mmc: base:0xc405f000 irq:23
[ 0.984753] sunxi-mmc 1c10000.mmc: base:0xc4063000 irq:24
[ 0.991100] usbcore: registered new interface driver usbhid
[ 0.996757] usbhid: USB HID core driver
[ 1.002181] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.010239] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.017418] NET: Registered protocol family 17
[ 1.021982] Key type dns_resolver registered
[ 1.026521] Registering SWP/SWPB emulation handler
[ 1.039957] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.047979] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.053745] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.062944] hub 1-0:1.0: USB hub found
[ 1.066942] hub 1-0:1.0: 1 port detected
[ 1.071616] using random self ethernet address
[ 1.076198] using random host ethernet address
[ 1.081606] usb0: HOST MAC 02:6c:63:7a:24:c5
[ 1.086102] usb0: MAC f2:58:cc:b7:95:4d
[ 1.089985] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.097511] g_cdc gadget: g_cdc ready
[ 1.103696] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.112723] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:10 UTC (70)
[ 1.121057] vcc5v0: disabling
[ 1.124033] ALSA device list:
[ 1.127071] #0: V3s Audio Codec
[ 1.131308] Waiting for root device /dev/ram0...
[ 3.203444] g_cdc gadget: high-speed config #1: CDC Composite (ECM + ACM)
[ 4.315418] random: fast init done
离线
我刷新\v3s-rtl8723bs\的u-boot-sunxi-with-spl.bin和rootfs.tar.gz,依然不行。。。。。有看到rootfs内有console(解压看的)
离线
没有。这两个包是官方的,是独立包。
离线
修改 bootargs 参数的方法在 上面帖子的 2楼
这个方法行不通。mmcblk0p2是读SD卡MMC卡等这种设备的。而且这个上面也说明了它是读二区。这个节点不能用在Flash上。(贴了Log)
[ 1.089968] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.097495] g_cdc gadget: g_cdc ready
[ 1.103751] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.112783] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:33 UTC (33)
[ 1.121114] vcc5v0: disabling
[ 1.124088] ALSA device list:
[ 1.127127] #0: V3s Audio Codec
[ 1.131396] Waiting for root device /dev/mmcblk0p2...
[ 5.594593] random: fast init done
^C[ 235.185529] random: crng init done
离线
依然还是不行。。。。。。
[ 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 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=/dev/mtdblock3 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)
[
[ 1.121077] vcc5v0: disabling
[ 1.124055] ALSA device list:
[ 1.127094] #0: V3s Audio Codec
[ 1.131348] Waiting for root device /dev/mtdblock3...
[ 5.594713] random: fast init done
离线
我还发现,但凡能正常启动到console上去的,里面都是用的/dev/ram0
离线