您尚未登录。

楼主 #1 2018-09-14 16:01:08

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

V3s 配置了uboot还是有问题

这里已经设置了Linux下配置的
Initial RAM filesystem and RAM disk (initramfs/initrd) support
(/opt/rootyang) Initramfs source file(s)

然后uboot里面的sun8i.h 配置是

#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x800000; " \
                             "bootz 0x41000000 - 0x41800000"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
                             "mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,8M(kernel)ro,-(rootfs) root=/dev/ram0"

启动时候 就出现wait for root device /dev/ram0  这里不动了
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #86 SMP Thu Dec 28 17:56:11 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 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 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,8M(kernel)ro,-(rootfs) root=/dev/ram0
[    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: 49508K/64036K available (6144K kernel code, 211K rwdata, 1344K rodata, 5120K init, 251K bss, 14528K 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 - 0xc0e00000   (5120 kB)
[    0.000000]       .data : 0xc0e00000 - 0xc0e34ea0   ( 212 kB)
[    0.000000]        .bss : 0xc0e3b6b8 - 0xc0e7a48c   ( 252 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: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000182] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000412] Console: colour dummy device 80x30
[    0.000448] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000464] pid_max: default: 32768 minimum: 301
[    0.000586] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000601] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001201] CPU: Testing write buffer coherency: ok
[    0.001579] /cpus/cpu@0 missing clock-frequency property
[    0.001602] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002037] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002219] Hierarchical SRCU implementation.
[    0.002710] smp: Bringing up secondary CPUs ...
[    0.002727] smp: Brought up 1 node, 1 CPU
[    0.002737] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002744] CPU: All CPU(s) started in SVC mode.
[    0.003509] devtmpfs: initialized
[    0.006520] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006795] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006825] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006996] pinctrl core: initialized pinctrl subsystem
[    0.007835] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.007973] NET: Registered protocol family 16
[    0.008389] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009426] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009443] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021526] SCSI subsystem initialized
[    0.021813] usbcore: registered new interface driver usbfs
[    0.021879] usbcore: registered new interface driver hub
[    0.021977] usbcore: registered new device driver usb
[    0.022238] pps_core: LinuxPPS API ver. 1 registered
[    0.022250] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022274] PTP clock support registered
[    0.022485] Advanced Linux Sound Architecture Driver Initialized.
[    0.024264] clocksource: Switched to clocksource arch_sys_counter
[    0.035009] NET: Registered protocol family 2
[    0.035601] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.035632] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.035655] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035787] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035836] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.036061] NET: Registered protocol family 1
[    0.366438] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.374393] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.375991] random: fast init done
[    0.378797] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.378818] io scheduler noop registered
[    0.378825] io scheduler deadline registered
[    0.379095] io scheduler cfq registered (default)
[    0.379108] io scheduler mq-deadline registered
[    0.379115] io scheduler kyber registered
[    0.383446] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.450252] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.453723] console [ttyS0] disabled
[    0.473995] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    1.027110] console [ttyS0] enabled
[    1.033399] libphy: Fixed MDIO Bus: probed
[    1.038072] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    1.043868] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.049642] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    1.055826] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.061487] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.068736] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.074403] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.081616] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.086586] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.093561] libphy: stmmac: probed
[    1.102664] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.109335] ehci-platform: EHCI generic platform driver
[    1.114897] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.120514] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.128536] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    1.164291] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.171468] hub 1-0:1.0: USB hub found
[    1.175408] hub 1-0:1.0: 1 port detected
[    1.179880] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.186177] ohci-platform: OHCI generic platform driver
[    1.191728] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.198457] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.206401] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.279353] hub 2-0:1.0: USB hub found
[    1.283176] hub 2-0:1.0: 1 port detected
[    1.290735] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.300319] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.309295] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.316202] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.320751] i2c /dev entries driver
[    1.325686] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.335161] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.404309] sunxi-mmc 1c0f000.mmc: base:0xc4079000 irq:23
[    1.464295] sunxi-mmc 1c10000.mmc: base:0xc407d000 irq:24
[    1.470806] usbcore: registered new interface driver usbhid
[    1.476463] usbhid: USB HID core driver
[    1.481928] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.489977] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.497493] NET: Registered protocol family 17
[    1.502085] Registering SWP/SWPB emulation handler
[    1.514621] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.525253] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.541438] Console: switching to colour frame buffer device 100x30
[    1.553918] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.562409] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.573747] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.579588] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.588630] hub 3-0:1.0: USB hub found
[    1.592493] hub 3-0:1.0: 1 port detected
[    1.597687] using random self ethernet address
[    1.602171] using random host ethernet address
[    1.607795] usb0: HOST MAC 5a:5f:12:5c:fb:77
[    1.612121] usb0: MAC 3a:0f:8f:fb:1e:1c
[    1.616111] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.623589] g_cdc gadget: g_cdc ready
[    1.629848] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.639303] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:14:21 UTC (861)
[    1.647689] vcc3v3: disabling
[    1.650663] vcc5v0: disabling
[    1.653626] ALSA device list:
[    1.656640]   #0: V3s Audio Codec
[    1.660671] Waiting for root device /dev/ram0...

离线

#2 2018-09-14 16:27:09

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

奇怪了 @pqfeng 网友也和你一样的问题,
貌似也看不出什么问题。





离线

楼主 #3 2018-09-14 16:28:42

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:

奇怪了 @pqfeng 网友也和你一样的问题,
貌似也看不出什么问题。



现在就是用官网自带的v3s-rtl8723bs(flash烧录镜像,wifi自动获取ip,可以上互联网) 这个文件里面去烧写 没有问题 但是换位自己编译的u-boot-sunxi-with-spl.bin这个烧写进去 就是一直刚才那个地方了  ,主要是也看不出来uboot那里没有配置好

最近编辑记录 无情一刀 (2018-09-14 16:33:29)

离线

#4 2018-09-14 16:32:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

没看出问题,

确认一下, 根文件系统目录 /opt/rootyang 下面有没有 /dev/ttyS0 ?





离线

楼主 #5 2018-09-14 16:34:59

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:

没看出问题,

确认一下, 根文件系统目录 /opt/rootyang 下面有没有 /dev/ttyS0 ?


你说的下面没有/dev/ttyS0   只有pts和shm  ,console ,log

离线

#6 2018-09-14 16:53:18

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

https://github.com/torvalds/linux/blob/master/init/do_mounts.c

这个问题谷歌都没有找到答案,要不你在576行前面输出一些打印信息看看.





离线

楼主 #7 2018-09-14 17:12:57

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:

https://github.com/torvalds/linux/blob/master/init/do_mounts.c

这个问题谷歌都没有找到答案,要不你在576行前面输出一些打印信息看看.


现在已经就是uboot自己编译的可以了  但是就是自己编译的ZImage 没有跑起来

离线

#8 2018-09-14 17:27:30

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

无情一刀 说:
晕哥 说:

https://github.com/torvalds/linux/blob/master/init/do_mounts.c

这个问题谷歌都没有找到答案,要不你在576行前面输出一些打印信息看看.


现在已经就是uboot自己编译的可以了  但是就是自己编译的ZImage 没有跑起来

就是说用自己编译的 zImage (ramdisk) 没有跑起来对吧?

Waiting for root device /dev/ram0...

这个问题确实没有找到答案,只能跟踪了。





离线

楼主 #9 2018-09-14 17:38:42

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:
无情一刀 说:
晕哥 说:

https://github.com/torvalds/linux/blob/master/init/do_mounts.c

这个问题谷歌都没有找到答案,要不你在576行前面输出一些打印信息看看.


现在已经就是uboot自己编译的可以了  但是就是自己编译的ZImage 没有跑起来

就是说用自己编译的 zImage (ramdisk) 没有跑起来对吧?

Waiting for root device /dev/ram0...

这个问题确实没有找到答案,只能跟踪了。

是的 自己生成的zImage没有跑起来


就是这个要不要修改哦哦(看了那个文档里面  我是用的16M spiflash的)
修改源码下的 ./drivers/mtd/spi-nor.c

修改对应spi-flash;如 w25q128 :

{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
// 修改为 (不使用sector,使用块擦除):
{ "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, 0) },

离线

#10 2018-09-14 17:40:28

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

你现在根文件系统是 ramdisk,目前和这个擦除块大小没有关系。
如果文件系统是 jffs2 就要改这里。





离线

楼主 #11 2018-09-14 17:46:26

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:

你现在根文件系统是 ramdisk,目前和这个擦除块大小没有关系。
如果文件系统是 jffs2 就要改这里。

那这样就是只要配置initial RAM filesystem and RAM disk 就可以  了 然后那个journalling flash FIle system v2 (jffs2)support不要选中了

离线

#12 2018-09-14 17:49:11

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

无情一刀 说:
晕哥 说:

你现在根文件系统是 ramdisk,目前和这个擦除块大小没有关系。
如果文件系统是 jffs2 就要改这里。

那这样就是只要配置initial RAM filesystem and RAM disk 就可以  了 然后那个journalling flash FIle system v2 (jffs2)support不要选中了

如果你只是启动到shell 控制台可以不用管 jffs2.

rootfs 可以用 ramdisk, 也可以用 jffs2, bootargs 启动参数不同。





离线

楼主 #13 2018-09-14 17:57:05

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:
无情一刀 说:
晕哥 说:

你现在根文件系统是 ramdisk,目前和这个擦除块大小没有关系。
如果文件系统是 jffs2 就要改这里。

那这样就是只要配置initial RAM filesystem and RAM disk 就可以  了 然后那个journalling flash FIle system v2 (jffs2)support不要选中了

如果你只是启动到shell 控制台可以不用管 jffs2.

rootfs 可以用 ramdisk, 也可以用 jffs2, bootargs 启动参数不同。


现在将刚才的jffs2去掉还是一样的

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Session stopped
    - Press <return> to exit tab
    - Press R to restart session
    - Press S to save terminal output to file

Error reading from serial device
0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 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 42dff59f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero+ (root@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #30 SMP Fri Sep 14 02:51:52 PDT 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 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 s24716 r8192 d24436 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,8M(kernel)ro,-(rootfs) root=/dev/ram0 rdinit=/sbin/init vt.global_cursor_default
[    0.000000] Booting kernel: `' invalid for parameter `vt.global_cursor_default'
[    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: 53648K/64036K available (6144K kernel code, 199K rwdata, 1388K rodata, 1024K init, 259K bss, 10388K 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 - 0xc0a31e00   ( 200 kB)
[    0.000000]        .bss : 0xc0a33000 - 0xc0a73f0c   ( 260 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.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000144] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000353] Console: colour dummy device 80x30
[    0.000388] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000403] pid_max: default: 32768 minimum: 301
[    0.000539] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000553] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001264] CPU: Testing write buffer coherency: ok
[    0.001670] /cpus/cpu@0 missing clock-frequency property
[    0.001696] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002045] Setting up static identity map for 0x40100000 - 0x40100058
[    0.002793] smp: Bringing up secondary CPUs ...
[    0.002811] smp: Brought up 1 node, 1 CPU
[    0.002821] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002827] CPU: All CPU(s) started in SVC mode.
[    0.003613] devtmpfs: initialized
[    0.006664] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006965] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006991] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007145] pinctrl core: initialized pinctrl subsystem
[    0.008146] NET: Registered protocol family 16
[    0.008633] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009869] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009885] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021933] SCSI subsystem initialized
[    0.022218] usbcore: registered new interface driver usbfs
[    0.022283] usbcore: registered new interface driver hub
[    0.022394] usbcore: registered new device driver usb
[    0.022615] pps_core: LinuxPPS API ver. 1 registered
[    0.022625] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022646] PTP clock support registered
[    0.022851] Advanced Linux Sound Architecture Driver Initialized.
[    0.024664] clocksource: Switched to clocksource arch_sys_counter
[    0.025502] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[    0.025522] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.032366] Console: switching to colour frame buffer device 100x30
[    0.038514] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    0.048538] NET: Registered protocol family 2
[    0.049160] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049191] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.049215] TCP: Hash tables configured (established 1024 bind 1024)
[    0.049310] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.049354] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.049575] NET: Registered protocol family 1
[    0.050188] RPC: Registered named UNIX socket transport module.
[    0.050207] RPC: Registered udp transport module.
[    0.050213] RPC: Registered tcp transport module.
[    0.050219] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.110064] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.119089] NFS: Registering the id_resolver key type
[    0.119139] Key type id_resolver registered
[    0.119146] Key type id_legacy registered
[    0.123106] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.123128] io scheduler noop registered
[    0.123135] io scheduler deadline registered
[    0.123333] io scheduler cfq registered (default)
[    0.127993] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.196944] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.200114] console [ttyS0] disabled
[    0.220402] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.822163] console [ttyS0] enabled
[    0.847150] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 35, base_baud = 1500000) is a U6_16550A
[    0.856892] [drm] Initialized
[    0.861877] libphy: Fixed MDIO Bus: probed
[    0.866384] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.872909] ehci-platform: EHCI generic platform driver
[    0.878281] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.884475] ohci-platform: OHCI generic platform driver
[    0.890217] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.899658] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.908726] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.915646] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.920196] i2c /dev entries driver
[    0.925160] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    0.934609] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.994717] sunxi-mmc 1c0f000.mmc: base:0xc4061000 irq:23
[    1.054690] sunxi-mmc 1c10000.mmc: base:0xc4065000 irq:24
[    1.061073] usbcore: registered new interface driver usbhid
[    1.066733] usbhid: USB HID core driver
[    1.072121] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.080190] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.087687] NET: Registered protocol family 17
[    1.092250] Key type dns_resolver registered
[    1.096792] Registering SWP/SWPB emulation handler
[    1.110031] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.118056] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.123820] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.133001] hub 1-0:1.0: USB hub found
[    1.136983] hub 1-0:1.0: 1 port detected
[    1.141641] using random self ethernet address
[    1.146214] using random host ethernet address
[    1.151665] usb0: HOST MAC 42:63:4e:3d:10:5c
[    1.156095] usb0: MAC 5a:72:9d:1c:f0:f9
[    1.159975] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.167496] g_cdc gadget: g_cdc ready
[    1.173727] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.182762] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 01:54:01 UTC (6841)
[    1.191256] vcc5v0: disabling
[    1.194233] ALSA device list:
[    1.197262]   #0: V3s Audio Codec
[    1.202722] Freeing unused kernel memory: 1024K
[    1.229805] request_module: runaway loop modprobe binfmt-464c
[    1.240213] Failed to execute /sbin/init (error -8)
[    1.260400] request_module: runaway loop modprobe binfmt-464c
[    1.270861] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.293245] request_module: runaway loop modprobe binfmt-464c
[    1.303718] Starting init: /bin/sh exists but couldn't execute it (error -8)
[    1.310922] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.325079] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero+ #30
[    1.332462] Hardware name: Allwinner sun8i Family
[    1.337201] [<c010e2fc>] (unwind_backtrace) from [<c010b098>] (show_stack+0x10/0x14)
[    1.344945] [<c010b098>] (show_stack) from [<c03366a4>] (dump_stack+0x84/0x98)
[    1.352167] [<c03366a4>] (dump_stack) from [<c01a6ccc>] (panic+0xdc/0x248)
[    1.359044] [<c01a6ccc>] (panic) from [<c0649b0c>] (kernel_init+0xfc/0x10c)
[    1.366003] [<c0649b0c>] (kernel_init) from [<c0107638>] (ret_from_fork+0x14/0x3c)
[    1.373573] Rebooting in 5 seconds..

离线

#14 2018-09-14 18:01:45

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

[    1.240213] Failed to execute /sbin/init (error -8)


这个文件不存在,或者没有执行属性,或者依赖的  so 文件没有。





离线

#15 2018-09-14 18:02:33

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

刚刚前面那个问题怎么解决的?

[    1.660671] Waiting for root device /dev/ram0...





离线

楼主 #16 2018-09-14 18:06:14

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:

刚刚前面那个问题怎么解决的?

[    1.660671] Waiting for root device /dev/ram0...


我在sun8i.h里面加了这个rdinit=  /sbin/init  vt.global_cursor_default

离线

#17 2018-09-14 18:09:05

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

无情一刀 说:
晕哥 说:

刚刚前面那个问题怎么解决的?

[    1.660671] Waiting for root device /dev/ram0...


我在sun8i.h里面加了这个rdinit=  /sbin/init  vt.global_cursor_default

原来如此。





离线

楼主 #18 2018-09-14 18:16:59

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:
无情一刀 说:
晕哥 说:

刚刚前面那个问题怎么解决的?

[    1.660671] Waiting for root device /dev/ram0...


我在sun8i.h里面加了这个rdinit=  /sbin/init  vt.global_cursor_default

原来如此。

现在就是uboot是起来  但是我烧写了自己zImage不行
烧写官方的zImage 在同样位置官方的是出现下面如图
[    1.579767] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.589337] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 02:11:54 UTC (7914)
[    1.597809] vcc3v3: disabling
[    1.600782] vcc5v0: disabling
[    1.603745] ALSA device list:
[    1.606761]   #0: V3s Audio Codec
[    1.616644] Freeing unused kernel memory: 5120K
mount: mounting tmpfs on /dev/shm failed: Invalid argument
mount: mounting tmpfs on /tmp failed: Invalid argument
mount: mounting tmpfs on /run failed: Invalid argument

然后烧写自己编译的是出现下面的这样的信息

[    1.191256] vcc5v0: disabling
[    1.194233] ALSA device list:
[    1.197262]   #0: V3s Audio Codec
[    1.202722] Freeing unused kernel memory: 1024K
[    1.229805] request_module: runaway loop modprobe binfmt-464c
[    1.240213] Failed to execute /sbin/init (error -8)
[    1.260400] request_module: runaway loop modprobe binfmt-464c
[    1.270861] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.293245] request_module: runaway loop modprobe binfmt-464c
[    1.303718] Starting init: /bin/sh exists but couldn't execute it (error -8)
[    1.310922] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.325079] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero+ #30
[    1.332462] Hardware name: Allwinner sun8i Family
[    1.337201] [<c010e2fc>] (unwind_backtrace) from [<c010b098>] (show_stack+0x10/0x14)
[    1.344945] [<c010b098>] (show_stack) from [<c03366a4>] (dump_stack+0x84/0x98)
[    1.352167] [<c03366a4>] (dump_stack) from [<c01a6ccc>] (panic+0xdc/0x248)
[    1.359044] [<c01a6ccc>] (panic) from [<c0649b0c>] (kernel_init+0xfc/0x10c)
[    1.366003] [<c0649b0c>] (kernel_init) from [<c0107638>] (ret_from_fork+0x14/0x3c)
[    1.373573] Rebooting in 5 seconds..

离线

#19 2018-09-14 18:21:59

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

1.240213] Failed to execute /sbin/init (error -8)
[    1.260400] request_module: runaway loop modprobe binfmt-464c
[    1.270861] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.293245] request_module: runaway loop modprobe binfmt-464c
[    1.303718] Starting init: /bin/sh exists but couldn't execute it (error -8)



这些文件都不能执行,
ls -l

看下是不是没有执行属性,没有执行属性是不行的。





离线

楼主 #20 2018-09-14 19:51:40

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: V3s 配置了uboot还是有问题

晕哥 说:

1.240213] Failed to execute /sbin/init (error -8)
[    1.260400] request_module: runaway loop modprobe binfmt-464c
[    1.270861] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.293245] request_module: runaway loop modprobe binfmt-464c
[    1.303718] Starting init: /bin/sh exists but couldn't execute it (error -8)



这些文件都不能执行,
ls -l

看下是不是没有执行属性,没有执行属性是不行的。

这边都改为777 了  还是一样的  就是重启

离线

#21 2018-09-14 19:55:39

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

那很可能缺运行库文件  libc.so  那些





离线

#22 2018-09-14 20:00:30

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,349
积分: 9202

Re: V3s 配置了uboot还是有问题

用我这个帖子里面的文件系统试一试: https://whycan.cn/t_561.html

这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn