您尚未登录。

#1 Re: 全志 SOC » 尝试从零构建F1C100s开发环境 » 2020-06-12 12:01:09

晕哥 说:

你用buildroot下面的工具链就没问题了: output/host/bin/arm-linux-gcc

换了这个工具链运行的时候显示段错误了,只是写了个helloworld
# ./hello
Segmentation fault
需要的动态库也移植了
wings@ubuntu:~/Lichee/opt$ ./compile.sh
  NEEDED               libc.so.0
不知道咋回事啊

#3 全志 SOC » 荔枝派nano,spiflash用的xt25f128b,16M,移植完成后,只剩800多K,什么都干不了,大家都怎么拿来开发的啊 » 2020-06-10 16:33:26

wings
回复: 1

# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                10.9M     10.1M    864.0K  92% /
devtmpfs                 11.1M         0     11.1M   0% /dev
tmpfs                    11.6M         0     11.6M   0% /dev/shm
tmpfs                    11.6M     16.0K     11.6M   0% /tmp
tmpfs                    11.6M     12.0K     11.6M   0% /run
/dev/mmcblk0p1           29.1G     67.3M     27.6G   0% /mnt
#

#7 全志 SOC » 荔枝派nano内核没有正常启动,spiflash用的xt25f128b,16M,跪求大神帮帮忙啦 » 2020-06-04 14:29:40

wings
回复: 7
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano (wings@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #9 Thu Jun 4 14:06:06 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] random: fast init done
[    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: 22668K/32768K available (6144K kernel code, 241K rwdata, 1424K rodata, 1024K init, 246K bss, 10100K 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 : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 242 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 247 kB)
[    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.000044] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000105] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000628] Console: colour dummy device 80x30
[    0.000706] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070227] pid_max: default: 32768 minimum: 301
[    0.070529] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070569] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071945] CPU: Testing write buffer coherency: ok
[    0.073547] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076041] devtmpfs: initialized
[    0.082511] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082580] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.082824] pinctrl core: initialized pinctrl subsystem
[    0.084789] NET: Registered protocol family 16
[    0.086153] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087915] cpuidle: using governor menu
[    0.113244] SCSI subsystem initialized
[    0.113583] usbcore: registered new interface driver usbfs
[    0.113730] usbcore: registered new interface driver hub
[    0.113927] usbcore: registered new device driver usb
[    0.114339] pps_core: LinuxPPS API ver. 1 registered
[    0.114365] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.114423] PTP clock support registered
[    0.114916] Advanced Linux Sound Architecture Driver Initialized.
[    0.116396] clocksource: Switched to clocksource timer
[    0.142284] NET: Registered protocol family 2
[    0.143666] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143743] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143794] TCP: Hash tables configured (established 1024 bind 1024)
[    0.144056] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.144115] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.144568] NET: Registered protocol family 1
[    0.145733] RPC: Registered named UNIX socket transport module.
[    0.145775] RPC: Registered udp transport module.
[    0.145793] RPC: Registered tcp transport module.
[    0.145809] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.147695] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.149474] Initialise system trusted keyrings
[    0.149984] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.167233] NFS: Registering the id_resolver key type
[    0.167325] Key type id_resolver registered
[    0.167347] Key type id_legacy registered
[    0.167458] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[    0.181633] Key type asymmetric registered
[    0.181673] Asymmetric key parser 'x509' registered
[    0.181869] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.181901] io scheduler noop registered
[    0.181921] io scheduler deadline registered
[    0.182675] io scheduler cfq registered (default)
[    0.182708] io scheduler mq-deadline registered
[    0.182727] io scheduler kyber registered
[    0.183838] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.193261] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.360192] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.366825] console [ttyS0] disabled
[    0.387048] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.860541] console [ttyS0] enabled
[    0.870971] panel-simple panel: panel supply power not found, using dummy regulator
[    0.880360] SCSI Media Changer driver v0.25 
[    0.888232] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[    0.893185] 4 ofpart partitions found on MTD device spi0.0
[    0.898775] Creating 4 MTD partitions on "spi0.0":
[    0.903587] 0x000000000000-0x000000100000 : "u-boot"
[    0.911195] 0x000000100000-0x000000110000 : "dtb"
[    0.918472] 0x000000110000-0x000000510000 : "kernel"
[    0.925827] 0x000000510000-0x000001000000 : "rootfs"
[    0.933853] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.940511] ehci-platform: EHCI generic platform driver
[    0.946022] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.952320] ohci-platform: OHCI generic platform driver
[    0.958029] usbcore: registered new interface driver usb-storage
[    0.964919] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.973955] i2c /dev entries driver
[    1.036514] sunxi-mmc 1c0f000.mmc: base:0x298e3574 irq:19
[    1.043941] usbcore: registered new interface driver usbhid
[    1.049631] usbhid: USB HID core driver
[    1.071174] NET: Registered protocol family 17
[    1.075861] Key type dns_resolver registered
[    1.082542] Loading compiled-in X.509 certificates
[    1.097676] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739c38)
[    1.106616] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0738f1c)
[    1.114280] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.120954] [drm] No driver support for vblank timestamp query.
[    1.174869] Console: switching to colour frame buffer device 60x34
[    1.198266] sun4i-drm display-engine: fb0:  frame buffer device
[    1.205447] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.214645] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.226654] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.232451] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.242595] hub 1-0:1.0: USB hub found
[    1.246653] hub 1-0:1.0: 1 port detected
[    1.252146] using random self ethernet address
[    1.256780] using random host ethernet address
[    1.263026] usb0: HOST MAC 5e:a8:cb:00:f2:64
[    1.267545] usb0: MAC 82:3d:d4:27:63:74
[    1.271547] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.279110] g_cdc gadget: g_cdc ready
[    1.283785] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.301375] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.308234] vcc3v3: disabling
[    1.311216] ALSA device list:
[    1.314181]   #0: Loopback 1
[    1.318032] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.326785] cfg80211: failed to load regulatory.db
[    1.472118] random: crng init done
[    5.194233] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[    5.202804] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 175
[    5.209271] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -5
[    5.217202] Please append a correct "root=" boot option; here are the available partitions:
[    5.225558] 1f00            1024 mtdblock0 
[    5.225567]  (driver?)
[    5.232193] 1f01              64 mtdblock1 
[    5.232203]  (driver?)
[    5.238789] 1f02            4096 mtdblock2 
[    5.238796]  (driver?)
[    5.245331] 1f03           11200 mtdblock3 
[    5.245337]  (driver?)
[    5.251935] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    5.260276] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-rc8-licheepi-nano #9
[    5.267562] Hardware name: Allwinner suniv Family
[    5.272340] [<c010e550>] (unwind_backtrace) from [<c010b6a8>] (show_stack+0x10/0x14)
[    5.280093] [<c010b6a8>] (show_stack) from [<c0116878>] (panic+0xb8/0x230)
[    5.286981] [<c0116878>] (panic) from [<c0901130>] (mount_block_root+0x170/0x250)
[    5.294460] [<c0901130>] (mount_block_root) from [<c0901304>] (mount_root+0xf4/0x120)
[    5.302284] [<c0901304>] (mount_root) from [<c090144c>] (prepare_namespace+0x11c/0x17c)
[    5.310283] [<c090144c>] (prepare_namespace) from [<c0900d60>] (kernel_init_freeable+0x174/0x1b8)
[    5.319159] [<c0900d60>] (kernel_init_freeable) from [<c066f6f0>] (kernel_init+0x8/0x10c)
[    5.327340] [<c066f6f0>] (kernel_init) from [<c0107dc0>] (ret_from_fork+0x14/0x34)
[    5.334902] Rebooting in 5 seconds..
[   11.314135] Reboot failed -- System halted

页脚

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

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