页次: 1
我按这个操作https://en.wiki.sipeed.com/soft/Lichee/zh/Nano-Doc-Backup/build_sys/onekey.html
没有权限执行
Starting logging: OK
Initializing random number generator... done.
Welcome to Lichee Pi
Lichee login: root
Password:
Login incorrect
Lichee login: licheepi
Password:
Login incorrect
Lichee login: root
Password:
# ls
littlevgl_demo
# ./littlevgl_demo
-sh: ./littlevgl_demo: Permission denied
# chmod 777 littlevgl_demo
# ./littlevgl_demo
-sh: ./littlevgl_demo: Permission denied
# ls
littlevgl_demo
# cd /user/bin
-sh: cd: can't cd to /user/bin
# ls
littlevgl_demo
# pwd
/root
Linux内核启动成功,值得庆祝
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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
reading zImage
4016104 bytes read in 636 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 29 ms (397.5 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
[ 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)) #46 SMP Fri Dec 15 14:36:43 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 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw
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: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K 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 - 0xc0a37b00 ( 223 kB)
[ 0.000000] .bss : 0xc0a3ebec - 0xc0a8153c ( 267 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.000017] Switching to timer-based delay loop, resolution 41ns
[ 0.000183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000417] Console: colour dummy device 80x30
[ 0.000454] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000469] pid_max: default: 32768 minimum: 301
[ 0.000597] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000611] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001213] CPU: Testing write buffer coherency: ok
[ 0.001599] /cpus/cpu@0 missing clock-frequency property
[ 0.001623] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002061] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002237] Hierarchical SRCU implementation.
[ 0.002731] smp: Bringing up secondary CPUs ...
[ 0.002747] smp: Brought up 1 node, 1 CPU
[ 0.002757] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002764] CPU: All CPU(s) started in SVC mode.
[ 0.003528] devtmpfs: initialized
[ 0.006657] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006954] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006981] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007149] pinctrl core: initialized pinctrl subsystem
[ 0.008018] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[ 0.008160] NET: Registered protocol family 16
[ 0.008646] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009779] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009797] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023302] SCSI subsystem initialized
[ 0.023613] usbcore: registered new interface driver usbfs
[ 0.023685] usbcore: registered new interface driver hub
[ 0.023788] usbcore: registered new device driver usb
[ 0.024038] pps_core: LinuxPPS API ver. 1 registered
[ 0.024050] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024074] PTP clock support registered
[ 0.024302] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026192] clocksource: Switched to clocksource arch_sys_counter
[ 0.036937] NET: Registered protocol family 2
[ 0.037527] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037561] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037584] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037712] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037760] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037983] NET: Registered protocol family 1
[ 0.038563] RPC: Registered named UNIX socket transport module.
[ 0.038584] RPC: Registered udp transport module.
[ 0.038590] RPC: Registered tcp transport module.
[ 0.038596] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040552] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049508] NFS: Registering the id_resolver key type
[ 0.049561] Key type id_resolver registered
[ 0.049568] Key type id_legacy registered
[ 0.049617] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[ 0.051107] random: fast init done
[ 0.053940] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.053965] io scheduler noop registered
[ 0.053972] io scheduler deadline registered
[ 0.054223] io scheduler cfq registered (default)
[ 0.054237] io scheduler mq-deadline registered
[ 0.054245] io scheduler kyber registered
[ 0.058599] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127379] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.130632] console [ttyS0] disabled
[ 0.150911] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.741614] console [ttyS0] enabled
[ 0.749825] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.756472] m25p80: probe of spi32766.0 failed with error -2
[ 0.762672] libphy: Fixed MDIO Bus: probed
[ 0.767429] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.773223] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.779007] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.785001] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[ 0.794579] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.800274] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.807502] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.813155] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.820380] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.825339] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.832313] libphy: stmmac: probed
[ 0.837683] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.844221] ehci-platform: EHCI generic platform driver
[ 0.849858] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.855474] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.863449] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.896208] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.903462] hub 1-0:1.0: USB hub found
[ 0.907411] hub 1-0:1.0: 1 port detected
[ 0.911909] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.918203] ohci-platform: OHCI generic platform driver
[ 0.923779] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.930511] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.938470] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.011310] hub 2-0:1.0: USB hub found
[ 1.015147] hub 2-0:1.0: 1 port detected
[ 1.022757] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.032347] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.041369] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.048276] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.052827] i2c /dev entries driver
[ 1.057872] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.067370] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.136243] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[ 1.181709] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.189887] mmc0: new SDHC card at address 0001
[ 1.195020] mmcblk0: mmc0:0001 SD16G 14.8 GiB
[ 1.199910] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[ 1.206361] usbcore: registered new interface driver usbhid
[ 1.211937] usbhid: USB HID core driver
[ 1.218401] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.226459] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.232863] mmcblk0: p1 p2
[ 1.239084] NET: Registered protocol family 17
[ 1.243647] Key type dns_resolver registered
[ 1.248194] Registering SWP/SWPB emulation handler
[ 1.259671] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.270353] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.286648] Console: switching to colour frame buffer device 100x30
[ 1.299046] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.307654] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.319098] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.324864] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.334025] hub 3-0:1.0: USB hub found
[ 1.338001] hub 3-0:1.0: 1 port detected
[ 1.343149] using random self ethernet address
[ 1.347724] using random host ethernet address
[ 1.353263] usb0: HOST MAC 86:ea:3a:db:1c:dd
[ 1.357728] usb0: MAC ba:23:53:3d:44:90
[ 1.361628] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.369152] g_cdc gadget: g_cdc ready
[ 1.375511] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.385094] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:42 UTC (102)
[ 1.393521] vcc5v0: disabling
[ 1.396551] ALSA device list:
[ 1.399517] #0: V3s Audio Codec
[ 1.404919] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.414445] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.524068] EXT4-fs (mmcblk0p2): recovery complete
[ 1.534519] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.542732] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.551738] devtmpfs: mounted
[ 1.555995] Freeing unused kernel memory: 1024K
[ 1.743770] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
buildroot login: root
# cd /
# ls
bin lib lost+found opt run tmp
dev lib32 media proc sbin usr
etc linuxrc mnt root sys var
@tongshezheng
https://github.com/nminaylov/F1C100s_projects
这个很有参考价值,正在研究中
编译https://github.com/hongxuyao/F1C100s_with_Keil_RTX4_emWin5
Rebuild target 'Product'
assembling startup_F1C100s.s...
compiling sys-clock.c...
.\boot-spl\include\io.h(10): error: #20: identifier "inline" is undefined
static inline uint8_t read8(uint32_t addr)
.
\boot-spl\include\io.h(10): error: #101: "uint8_t" has already been declared in the current scope
static inline uint8_t read8(uint32_t addr)
.\boot-spl\include\io.h(10): error: #65: expected a ";"
static inline uint8_t read8(uint32_t addr)
boot-spl\sys-clock.c(34): error: #10: "#" not expected here
SUBS loops, loops, #1
boot-spl\sys-clock.c(73): warning: #12-D: parsing restarts here after
previous syntax error
k = 1;
boot-spl\sys-clock.c(74): error: #77-D: this declaration has no storage class or type specifier
n = (div / (k + 1)) - 1;
boot-spl\sys-clock.c(74): error: #20:
identifier "div" is undefined
n = (div / (k + 1)) - 1;
boot-spl\sys-clock.c(74): error: #20: identifier "k" is undefined
n = (div / (k + 1)) - 1;
boot-spl\sys-clock.c(75): error: #77-D: this
declaration has no storage class or type specifier
p = 0;
boot-spl\sys-clock.c(76): error: #169: expected a declaration
} else {
compiling GUIDEMO_ImageFlow.c...
compiling GUIDEMO_Intro.c...
compiling GUIDEMO_Listview.c...
compiling GUIDEMO_RadialMenu.c...
compiling GUIDEMO_Resource.c...
compiling GUIDEMO_Skinning.c...
compiling
GUIDEMO_Speed.c...
compiling GUIDEMO_Speedometer.c...
compiling GUIDEMO_Start.c...
compiling GUIDEMO_TransparentDialog.c...
compiling GUIDEMO_Treeview.c...
compiling GUIDEMO_VScreen.c...
compiling
GUIDEMO_WashingMachine.c...
compiling GUIDEMO_ZoomAndRotate.c...
".\Temp\Obj\Blinky.axf" - 348 Error(s), 132 Warning(s).
Target not created
出现了这么多错误
/opt/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/7.2.1/libgcc.a(_dvmd_lnx.o): In function `__aeabi_idiv0':
/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/snapshots/gcc.git~linaro-7.2-2017.11/libgcc/config/arm/lib1funcs.S:1545: undefined reference to `raise'
collect2: error: ld returned 1 exit status
Makefile:78: recipe for target 'build/firmware.elf' failed
make: *** [build/firmware.elf] Error 1
我的编译出现了这个有大牛知道是什么原因呀
页次: 1