WhyCan Forum(哇酷开发者社区)

人过留名,雁过留声,感谢各位朋友不离不弃地支持。 QQ: 516333132, 微信: whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn

您尚未登录。

#201 2020-05-11 14:55:24

jiass
会员
所在地: 济南
注册时间: 2020-03-13
累计积分: 7

Re: 尝试从零构建F1C100s开发环境

ghosoft 说:

编译根文件系统时候遇到问题了,   没想好怎么解决,   因为apt安装不了4.12版本的linux-header,  我是在ubuntu18.04的虚拟机中尝试编译的

zt@ubuntu:~/buildroot$ make
>>> linux-headers custom Installing to staging directory
(cd /home/zt/buildroot/output/build/linux-headers-custom; PATH="/home/zt/buildroot/output/host/bin:/home/zt/buildroot/output/host/sbin:/home/zt/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/zt/crosstool-ng:/home/zt/LicheePi/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin" /usr/bin/make -j5 ARCH=arm HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" HOSTCXX="/usr/bin/g++" INSTALL_HDR_PATH=/home/zt/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr headers_install)
make[1]: Entering directory '/home/zt/buildroot/output/build/linux-headers-custom'
make[1]: Leaving directory '/home/zt/buildroot/output/build/linux-headers-custom'
if ! support/scripts/check-kernel-headers.sh  /home/zt/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot  4.12; then exit 1; fi
Incorrect selection of kernel headers: expected 4.12.x, got 4.19.x
package/pkg-generic.mk:266: recipe for target '/home/zt/buildroot/output/build/linux-headers-custom/.stamp_staging_installed' failed
make: *** [/home/zt/buildroot/output/build/linux-headers-custom/.stamp_staging_installed] Error 1

我用ubuntu20.04编译成功了,使用的是外部交叉编译工具链

离线

#202 2020-05-11 14:56:56

heiheizi
会员
注册时间: 2019-10-25
累计积分: 24

Re: 尝试从零构建F1C100s开发环境

对新手非常有用。

离线

#203 2020-05-13 00:39:55

mawmanager
会员
注册时间: 2020-04-17
累计积分: 1

Re: 尝试从零构建F1C100s开发环境

感谢楼主 持续观望

离线

#204 2020-05-13 20:58:37

name272
会员
注册时间: 2020-05-13
累计积分: 10

Re: 尝试从零构建F1C100s开发环境

写的很详细,已经入坑了!!!!!!

离线

#205 2020-05-15 15:13:18

cnicfhnui
会员
注册时间: 2019-10-23
累计积分: 13

Re: 尝试从零构建F1C100s开发环境

100S的uboot你们编译出来是多大,我的怎么是1M,uboot过大怎么减小啊?V3S的才400多K啊,16Mflash跑起来只有200多K空间了

离线

#206 2020-05-16 16:35:39

andrewchen175
会员
注册时间: 2020-04-26
累计积分: 11

Re: 尝试从零构建F1C100s开发环境

freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
   92 |  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."

刚刚学,完全是照做,在编译根文件系统,make的时候出现错误,出现异常完全不懂怎么解决?求助,多谢

离线

#207 2020-05-16 16:42:29

tianyekpsexzxg
会员
注册时间: 2020-04-12
累计积分: 10

Re: 尝试从零构建F1C100s开发环境

感谢楼主,写得很详细,新人学起来有参考了,希望再接再厉

离线

#208 2020-05-17 10:47:02

郝好小小
会员
注册时间: 2020-04-02
累计积分: 7

Re: 尝试从零构建F1C100s开发环境

系统启动了,但是发现f1c200s,没有网口,没有usb,持续观望学习中。

离线

#209 2020-05-17 11:42:21

LinjieGuo
会员
注册时间: 2019-07-24
累计积分: 184

Re: 尝试从零构建F1C100s开发环境

郝好小小 说:

系统启动了,但是发现f1c200s,没有网口,没有usb,持续观望学习中。

看第二篇文章 https://whycan.cn/t_4266.html

离线

#210 2020-05-17 15:57:01

没事逛荡
会员
注册时间: 2018-10-22
累计积分: 16

Re: 尝试从零构建F1C100s开发环境

mark

离线

#211 2020-05-18 01:17:23

tiandiyixian20
会员
注册时间: 2020-05-17
累计积分: 10

Re: 尝试从零构建F1C100s开发环境

MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e05000, end 80e0a3b5 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (zjf@book-virtual-machine) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #10 Mon May 18 01:03:16 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22696K/32768K available (6144K kernel code, 233K rwdata, 1472K rodata, 1024K init, 228K bss, 10072K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x42c with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000127] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000709] Console: colour dummy device 80x30
[    0.000807] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070245] pid_max: default: 32768 minimum: 301
[    0.070674] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070714] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072400] CPU: Testing write buffer coherency: ok
[    0.074424] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076719] devtmpfs: initialized
[    0.084396] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.084457] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.084767] pinctrl core: initialized pinctrl subsystem
[    0.086849] NET: Registered protocol family 16
[    0.088278] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.090494] cpuidle: using governor menu
[    0.144032] SCSI subsystem initialized
[    0.144444] usbcore: registered new interface driver usbfs
[    0.144604] usbcore: registered new interface driver hub
[    0.144792] usbcore: registered new device driver usb
[    0.145298] pps_core: LinuxPPS API ver. 1 registered
[    0.145324] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.145850] Advanced Linux Sound Architecture Driver Initialized.
[    0.147573] clocksource: Switched to clocksource timer
[    0.178726] NET: Registered protocol family 2
[    0.180294] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.180374] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180435] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180483] TCP: Hash tables configured (established 1024 bind 1024)
[    0.180774] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.180835] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.181346] NET: Registered protocol family 1
[    0.183860] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.186019] Initialise system trusted keyrings
[    0.186614] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.207933] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.214559] Key type asymmetric registered
[    0.214596] Asymmetric key parser 'x509' registered
[    0.214781] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.214808] io scheduler mq-deadline registered
[    0.214825] io scheduler kyber registered
[    0.227429] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.421545] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.427394] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.429331] printk: console [ttyS0] disabled
[    0.449598] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[    0.829064] printk: console [ttyS0] enabled
[    0.837489] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.889606] brd: module loaded
[    0.913898] loop: module loaded
[    0.918114] SCSI Media Changer driver v0.25 
[    0.923707] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.936693] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.942461] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.948941] Creating 4 MTD partitions on "spi0.0":
[    0.953754] 0x000000000000-0x000000100000 : "u-boot"
[    0.962681] 0x000000100000-0x000000110000 : "dtb"
[    0.971157] 0x000000110000-0x000000510000 : "kernel"
[    0.979945] 0x000000510000-0x000001000000 : "rootfs"
[    0.989196] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.995727] ehci-platform: EHCI generic platform driver
[    1.001387] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.007714] ohci-platform: OHCI generic platform driver
[    1.013380] usbcore: registered new interface driver usb-storage
[    1.021215] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[    1.030119] i2c /dev entries driver
[    1.037778] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.075933] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.085407] usbcore: registered new interface driver usbhid
[    1.091109] usbhid: USB HID core driver
[    1.111993] NET: Registered protocol family 17
[    1.116556] Key type dns_resolver registered
[    1.123402] Loading compiled-in X.509 certificates
[    1.138698] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.150125] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.160956] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0738094)
[    1.170036] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0736cec)
[    1.177818] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.184421] [drm] No driver support for vblank timestamp query.
[    1.191734] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.249948] Console: switching to colour frame buffer device 60x34
[    1.273157] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.281268] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.299447] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.306225] vcc5v0: disabling
[    1.309331] ALSA device list:
[    1.312362]   #0: Loopback 1
[    1.316260] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.324988] cfg80211: failed to load regulatory.db
[    1.331966] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
[    1.340000] Please append a correct "root=" boot option; here are the available partitions:
[    1.348483] 0100            4096 ram0 
[    1.348493]  (driver?)
[    1.354603] 0101            4096 ram1 
[    1.354607]  (driver?)
[    1.360782] 0102            4096 ram2 
[    1.360788]  (driver?)
[    1.366930] 0103            4096 ram3 
[    1.366936]  (driver?)
[    1.373097] 0104            4096 ram4 
[    1.373104]  (driver?)
[    1.379281] 0105            4096 ram5 
[    1.379288]  (driver?)
[    1.385390] 0106            4096 ram6 
[    1.385395]  (driver?)
[    1.391552] 0107            4096 ram7 
[    1.391557]  (driver?)
[    1.397725] 0108            4096 ram8 
[    1.397733]  (driver?)
[    1.403834] 0109            4096 ram9 
[    1.403838]  (driver?)
[    1.410010] 010a            4096 ram10 
[    1.410017]  (driver?)
[    1.416240] 010b            4096 ram11 
[    1.416246]  (driver?)
[    1.422489] 010c            4096 ram12 
[    1.422495]  (driver?)
[    1.428728] 010d            4096 ram13 
[    1.428735]  (driver?)
[    1.434952] 010e            4096 ram14 
[    1.434958]  (driver?)
[    1.441203] 010f            4096 ram15 
[    1.441210]  (driver?)
[    1.447434] 1f00            1024 mtdblock0 
[    1.447441]  (driver?)
[    1.454031] 1f01              64 mtdblock1 
[    1.454037]  (driver?)
[    1.460617] 1f02            4096 mtdblock2 
[    1.460622]  (driver?)
[    1.467188] 1f03           11200 mtdblock3 
[    1.467194]  (driver?)
[    1.473780] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.482120] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano+ #10
[    1.489147] Hardware name: Allwinner suniv Family
[    1.493902] [<c010e478>] (unwind_backtrace) from [<c010ba5c>] (show_stack+0x10/0x14)
[    1.501647] [<c010ba5c>] (show_stack) from [<c0116db4>] (panic+0xe8/0x2e4)
[    1.508529] [<c0116db4>] (panic) from [<c090129c>] (mount_block_root+0x1ec/0x2e0)
[    1.516006] [<c090129c>] (mount_block_root) from [<c09016bc>] (prepare_namespace+0x158/0x1b8)
[    1.524536] [<c09016bc>] (prepare_namespace) from [<c065a670>] (kernel_init+0x8/0x110)
[    1.532452] [<c065a670>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.540000] Exception stack(0xc1831fb0 to 0xc1831ff8)
[    1.545051] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.553218] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.561382] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.567993] Rebooting in 5 seconds..
[    7.547227] Reboot failed -- System halted

博主好,请问我这个好像是没有识别到mtd这个是啥原因,MTD有打开的
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_FTL=y
CONFIG_RFD_FTL=y
CONFIG_MTD_SWAP=y

离线

#212 2020-05-18 08:54:40

哇酷小二
Administrator
注册时间: 2020-04-22
累计积分: 1,301

Re: 尝试从零构建F1C100s开发环境

[    1.331966] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19

可能没有开jffs2文件系统
可能 mtd3 上没有合法的jffs2文件系统。

第一种原因可能性大一些。

离线

#213 2020-05-18 10:22:01

LinjieGuo
会员
注册时间: 2019-07-24
累计积分: 184

Re: 尝试从零构建F1C100s开发环境

tiandiyixian20 说:
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e05000, end 80e0a3b5 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (zjf@book-virtual-machine) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #10 Mon May 18 01:03:16 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22696K/32768K available (6144K kernel code, 233K rwdata, 1472K rodata, 1024K init, 228K bss, 10072K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x42c with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000127] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000709] Console: colour dummy device 80x30
[    0.000807] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070245] pid_max: default: 32768 minimum: 301
[    0.070674] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070714] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072400] CPU: Testing write buffer coherency: ok
[    0.074424] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076719] devtmpfs: initialized
[    0.084396] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.084457] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.084767] pinctrl core: initialized pinctrl subsystem
[    0.086849] NET: Registered protocol family 16
[    0.088278] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.090494] cpuidle: using governor menu
[    0.144032] SCSI subsystem initialized
[    0.144444] usbcore: registered new interface driver usbfs
[    0.144604] usbcore: registered new interface driver hub
[    0.144792] usbcore: registered new device driver usb
[    0.145298] pps_core: LinuxPPS API ver. 1 registered
[    0.145324] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.145850] Advanced Linux Sound Architecture Driver Initialized.
[    0.147573] clocksource: Switched to clocksource timer
[    0.178726] NET: Registered protocol family 2
[    0.180294] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.180374] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180435] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180483] TCP: Hash tables configured (established 1024 bind 1024)
[    0.180774] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.180835] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.181346] NET: Registered protocol family 1
[    0.183860] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.186019] Initialise system trusted keyrings
[    0.186614] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.207933] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.214559] Key type asymmetric registered
[    0.214596] Asymmetric key parser 'x509' registered
[    0.214781] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.214808] io scheduler mq-deadline registered
[    0.214825] io scheduler kyber registered
[    0.227429] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.421545] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.427394] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.429331] printk: console [ttyS0] disabled
[    0.449598] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[    0.829064] printk: console [ttyS0] enabled
[    0.837489] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.889606] brd: module loaded
[    0.913898] loop: module loaded
[    0.918114] SCSI Media Changer driver v0.25 
[    0.923707] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.936693] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.942461] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.948941] Creating 4 MTD partitions on "spi0.0":
[    0.953754] 0x000000000000-0x000000100000 : "u-boot"
[    0.962681] 0x000000100000-0x000000110000 : "dtb"
[    0.971157] 0x000000110000-0x000000510000 : "kernel"
[    0.979945] 0x000000510000-0x000001000000 : "rootfs"
[    0.989196] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.995727] ehci-platform: EHCI generic platform driver
[    1.001387] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.007714] ohci-platform: OHCI generic platform driver
[    1.013380] usbcore: registered new interface driver usb-storage
[    1.021215] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[    1.030119] i2c /dev entries driver
[    1.037778] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.075933] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.085407] usbcore: registered new interface driver usbhid
[    1.091109] usbhid: USB HID core driver
[    1.111993] NET: Registered protocol family 17
[    1.116556] Key type dns_resolver registered
[    1.123402] Loading compiled-in X.509 certificates
[    1.138698] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.150125] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.160956] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0738094)
[    1.170036] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0736cec)
[    1.177818] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.184421] [drm] No driver support for vblank timestamp query.
[    1.191734] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.249948] Console: switching to colour frame buffer device 60x34
[    1.273157] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.281268] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.299447] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.306225] vcc5v0: disabling
[    1.309331] ALSA device list:
[    1.312362]   #0: Loopback 1
[    1.316260] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.324988] cfg80211: failed to load regulatory.db
[    1.331966] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
[    1.340000] Please append a correct "root=" boot option; here are the available partitions:
[    1.348483] 0100            4096 ram0 
[    1.348493]  (driver?)
[    1.354603] 0101            4096 ram1 
[    1.354607]  (driver?)
[    1.360782] 0102            4096 ram2 
[    1.360788]  (driver?)
[    1.366930] 0103            4096 ram3 
[    1.366936]  (driver?)
[    1.373097] 0104            4096 ram4 
[    1.373104]  (driver?)
[    1.379281] 0105            4096 ram5 
[    1.379288]  (driver?)
[    1.385390] 0106            4096 ram6 
[    1.385395]  (driver?)
[    1.391552] 0107            4096 ram7 
[    1.391557]  (driver?)
[    1.397725] 0108            4096 ram8 
[    1.397733]  (driver?)
[    1.403834] 0109            4096 ram9 
[    1.403838]  (driver?)
[    1.410010] 010a            4096 ram10 
[    1.410017]  (driver?)
[    1.416240] 010b            4096 ram11 
[    1.416246]  (driver?)
[    1.422489] 010c            4096 ram12 
[    1.422495]  (driver?)
[    1.428728] 010d            4096 ram13 
[    1.428735]  (driver?)
[    1.434952] 010e            4096 ram14 
[    1.434958]  (driver?)
[    1.441203] 010f            4096 ram15 
[    1.441210]  (driver?)
[    1.447434] 1f00            1024 mtdblock0 
[    1.447441]  (driver?)
[    1.454031] 1f01              64 mtdblock1 
[    1.454037]  (driver?)
[    1.460617] 1f02            4096 mtdblock2 
[    1.460622]  (driver?)
[    1.467188] 1f03           11200 mtdblock3 
[    1.467194]  (driver?)
[    1.473780] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.482120] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano+ #10
[    1.489147] Hardware name: Allwinner suniv Family
[    1.493902] [<c010e478>] (unwind_backtrace) from [<c010ba5c>] (show_stack+0x10/0x14)
[    1.501647] [<c010ba5c>] (show_stack) from [<c0116db4>] (panic+0xe8/0x2e4)
[    1.508529] [<c0116db4>] (panic) from [<c090129c>] (mount_block_root+0x1ec/0x2e0)
[    1.516006] [<c090129c>] (mount_block_root) from [<c09016bc>] (prepare_namespace+0x158/0x1b8)
[    1.524536] [<c09016bc>] (prepare_namespace) from [<c065a670>] (kernel_init+0x8/0x110)
[    1.532452] [<c065a670>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.540000] Exception stack(0xc1831fb0 to 0xc1831ff8)
[    1.545051] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.553218] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.561382] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.567993] Rebooting in 5 seconds..
[    7.547227] Reboot failed -- System halted

博主好,请问我这个好像是没有识别到mtd这个是啥原因,MTD有打开的
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_FTL=y
CONFIG_RFD_FTL=y
CONFIG_MTD_SWAP=y

试一下这个:
观察启动log,发现,卡住的地方,有一条记录:  #0: Loopback 1
    再次进入配置界面:make ARCH=arm menuconfig
    Device Drivers  --->Block devices  --->
        [v]Loopback device support,勾选,看到其他有的选项,也勾上吧,相信也无妨......
上门有这个错误记录,回去看看。不知道是否为这个原因。

最近编辑记录 LinjieGuo (2020-05-18 10:22:55)

离线

#214 2020-05-18 11:01:26

kaixxss
会员
注册时间: 2019-11-18
累计积分: 10

Re: 尝试从零构建F1C100s开发环境

卡在了start kernel什么鬼啊 之前没接触过这些 不知道从哪入手

离线

#215 2020-05-18 11:19:04

有梦的地方
会员
注册时间: 2020-03-17
累计积分: 167

Re: 尝试从零构建F1C100s开发环境

kaixxss 说:

卡在了start kernel什么鬼啊 之前没接触过这些 不知道从哪入手

zImage或者dtb有问题。

离线

#216 2020-05-18 19:06:53

wjn060454
会员
注册时间: 2020-05-13
累计积分: 8

Re: 尝试从零构建F1C100s开发环境

您好 http://dl.sipeed.com/LICHEE/Nano/SDK/config 这个config文件请问能分享下么?今天上这个发现config文件下不了。。跟着教程走不下去了。。

离线

#217 2020-05-20 09:36:35

LinjieGuo
会员
注册时间: 2019-07-24
累计积分: 184

Re: 尝试从零构建F1C100s开发环境

wjn060454 说:

您好 http://dl.sipeed.com/LICHEE/Nano/SDK/config 这个config文件请问能分享下么?今天上这个发现config文件下不了。。跟着教程走不下去了。。

稍等,我传上来
https://whycan.cn/files/members/1845/config_ok.zip
下载文件,解压zip包,然后将config_ok复制为.config文件就可以了

最近编辑记录 LinjieGuo (2020-05-20 09:45:45)

离线

#218 2020-05-20 10:06:01

ling
会员
注册时间: 2020-05-20
累计积分: 8

Re: 尝试从零构建F1C100s开发环境

谢谢楼主分享,按照操作走一遍应该问题不大

离线

#219 2020-05-20 20:28:35

LinjieGuo
会员
注册时间: 2019-07-24
累计积分: 184

Re: 尝试从零构建F1C100s开发环境

mirkerson 说:

有裸机开发这块的资料吗,一直没接触过现在着急这方面的资料,头都大了

淘宝上有个卖代码的,1.5K,做项目可以直接购买。搜索"小淘气科技"店铺就可以了

最近编辑记录 LinjieGuo (2020-05-20 20:29:35)

离线

#220 2020-05-20 20:48:52

nalzok
会员
注册时间: 2020-05-20
累计积分: 9

Re: 尝试从零构建F1C100s开发环境

分享一下国外大佬用 F1C100s 做的东西:

https://www.thirtythreeforty.net/posts/2019/12/my-business-card-runs-linux/

离线

#221 2020-05-20 22:13:12

RCSN
会员
注册时间: 2019-03-26
累计积分: 7

Re: 尝试从零构建F1C100s开发环境

持续观望学习中

离线

#222 2020-05-21 00:07:43

qunke
会员
注册时间: 2019-07-01
累计积分: 4

Re: 尝试从零构建F1C100s开发环境

谢谢楼主分享 学习了

离线

#223 2020-05-21 12:11:23

Targz
会员
注册时间: 2020-05-21
累计积分: 7

Re: 尝试从零构建F1C100s开发环境

very helpful thread for those new to the f1c100s. thanks a lot for sharing this with us

离线

#224 2020-05-21 16:12:16

auroal1
会员
注册时间: 2020-05-21
累计积分: 7

Re: 尝试从零构建F1C100s开发环境

能不能把那个交叉编译工具链转发一下,下了一天都没有弄下来,好麻烦

离线

#225 2020-05-21 18:44:28

LinjieGuo
会员
注册时间: 2019-07-24
累计积分: 184

Re: 尝试从零构建F1C100s开发环境

auroal1 说:

能不能把那个交叉编译工具链转发一下,下了一天都没有弄下来,好麻烦

复制链接,然后使用迅雷下载。
http://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabi/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz

离线

#226 2020-05-21 21:22:39

yvan
会员
注册时间: 2019-10-16
累计积分: 5

Re: 尝试从零构建F1C100s开发环境

哇塞,这个是真爱了, 从头弄到尾

离线

#227 2020-05-22 10:43:50

逸俊晨晖
会员
注册时间: 2018-08-29
累计积分: 61

Re: 尝试从零构建F1C100s开发环境

看到很多人问为什么rootfs构建出来是100m的
我说说我的发现 如果你们是用
http://nano.lichee.pro/build_sys/rootfs.html
下载的.config 那么就是100m的 因为这个是给tf卡准备的
给flash的应该是先用没有配置的 然后按照网站给的手动配置几个项

一些配置的简单说明
Target options  --->

    Target Architecture Variant (arm926t)  --->   // arm926ejs架构
[ ] Enable VFP extension support                  // Nano 没有 VFP单元,勾选会导致某些应用无法运行
    Target ABI (EABI)  --->
    Floating point strategy (Soft float)  --->    // 软浮点

System configuration  --->

    (Lichee Pi) System hostname                   // hostname
    (licheepi) Root password                      // 默认账户为root 密码为licheepi
    [*] remount root filesystem read-write during boot  // 启动时重新挂在文件系统使其可读写

这样构建出来的rootfs就几个m 再需要什么功能自己加

离线

#228 2020-05-22 16:48:19

秦皇岛岛主
会员
注册时间: 2020-05-22
累计积分: 13

Re: 尝试从零构建F1C100s开发环境

标记一下,希望尽快完成你的学习路径

离线

页脚

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