您尚未登录。

楼主 #1 2020-05-03 15:12:28

chainsx
会员
注册时间: 2019-08-01
已发帖子: 37
积分: 31.5

尝试给f1c100s编译openwrt【挖】

用的这个源码编译的
编译过程不要使用root编译!!!

https://github.com/qinfengling/openwrt/tree/licheepi-nano/

1,拉取源码

git clone -b licheepi-nano https://github.com/qinfengling/openwrt.git

不得不说,按照网上改hosts的方法使github访问速度快了不少,基本满速下载,后来查了一下GitHub访问速度慢的原因是github的fastly节点被q了。

2,然后

./scripts/feeds update -a && ./scripts/feeds install -a

(这个真心慢得吐血,还会拉取失败,不过我用阿里云早上就能拉取成功)

3,使用

make menuconfig

选择f1c100s然后

make V=s world

进行编译

4,编译完成后,进入build_dir/target-arm_arm926ej-s_musl_eabi/linux-sunxi_arm9/linux-4.14.63/drivers/clk/sunxi-ng,把ccu-suniv.c中对应的8改为1(不说都懂),然后把ccu-suniv.o删掉,最好把构建目录下的bin文件夹也删掉重新生成。

5,使用

make menuconfig

增加rndis的相关软件包。

6,然后再编译重新生成

make V=s world

全程没有报错,好像要成功了,我待会插卡试试再来发帖。

离线

楼主 #2 2020-05-03 15:15:27

chainsx
会员
注册时间: 2019-08-01
已发帖子: 37
积分: 31.5

Re: 尝试给f1c100s编译openwrt【挖】

闯鬼了,居然会Kernel panic

U-Boot SPL 2017.11 (Aug 16 2018 - 07:51:15)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2017.11 (Aug 16 2018 - 07:51:15 +0000) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

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
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
352 bytes read in 14 ms (24.4 KiB/s)
## Executing script at 80c50000
reading zImage
2877552 bytes read in 153 ms (17.9 MiB/s)
reading dtb
7464 bytes read in 23 ms (316.4 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816ffd27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (ubuntu@chainsx.cn) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Thu Aug 16 07:51:15 2018
[    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: get_random_bytes called from start_kernel+0x74/0x3c8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    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: 22656K/32768K available (6144K kernel code, 226K rwdata, 1748K rodata, 1024K init, 255K bss, 10112K 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 : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a388c0   ( 227 kB)
[    0.000000]        .bss : 0xc0a3db70 - 0xc0a7d964   ( 256 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.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000112] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000581] Console: colour dummy device 80x30
[    0.000672] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070240] pid_max: default: 32768 minimum: 301
[    0.070593] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070636] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071878] CPU: Testing write buffer coherency: ok
[    0.073619] Setting up static identity map for 0x80100000 - 0x80100058
[    0.079965] VFP support v0.3: not present
[    0.080588] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080650] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080886] pinctrl core: initialized pinctrl subsystem
[    0.083086] NET: Registered protocol family 16
[    0.084441] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086693] No ATAGs?
[    0.113409] SCSI subsystem initialized
[    0.114160] usbcore: registered new interface driver usbfs
[    0.114310] usbcore: registered new interface driver hub
[    0.114493] usbcore: registered new device driver usb
[    0.114938] pps_core: LinuxPPS API ver. 1 registered
[    0.114967] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115026] PTP clock support registered
[    0.115694] Advanced Linux Sound Architecture Driver Initialized.
[    0.117748] clocksource: Switched to clocksource timer
[    0.131359] NET: Registered protocol family 2
[    0.132911] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.132987] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.133039] TCP: Hash tables configured (established 1024 bind 1024)
[    0.133295] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.133354] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.133858] NET: Registered protocol family 1
[    0.135116] RPC: Registered named UNIX socket transport module.
[    0.135156] RPC: Registered udp transport module.
[    0.135174] RPC: Registered tcp transport module.
[    0.135190] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137464] No memory allocated for crashlog
[    0.138187] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.153064] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.155363] NFS: Registering the id_resolver key type
[    0.155450] Key type id_resolver registered
[    0.155470] Key type id_legacy registered
[    0.155591] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.173756] Key type asymmetric registered
[    0.173799] Asymmetric key parser 'x509' registered
[    0.173871] io scheduler noop registered
[    0.173894] io scheduler deadline registered
[    0.174710] io scheduler cfq registered (default)
[    0.174746] io scheduler mq-deadline registered
[    0.174765] io scheduler kyber registered
[    0.175903] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.185697] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.271099] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.275968] console [ttyS0] disabled
[    0.296227] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.772824] console [ttyS0] enabled
[    0.798200] loop: module loaded
[    0.802094] SCSI Media Changer driver v0.25
[    0.817319] random: fast init done
[    0.821173] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.830360] libphy: Fixed MDIO Bus: probed
[    0.835420] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842073] ehci-platform: EHCI generic platform driver
[    0.847550] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.853850] ohci-platform: OHCI generic platform driver
[    0.859530] usbcore: registered new interface driver usb-storage
[    0.866146] mousedev: PS/2 mouse device common for all mice
[    0.872381] i2c /dev entries driver
[    0.877252] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.947891] sunxi-mmc 1c0f000.mmc: base:0xc28a0000 irq:18
[    0.969345] NET: Registered protocol family 10
[    0.976787] Segment Routing with IPv6
[    0.980843] NET: Registered protocol family 17
[    0.985419] can: controller area network core (rev 20170425 abi 9)
[    0.991912] NET: Registered protocol family 29
[    0.996508] 8021q: 802.1Q VLAN Support v1.8
[    1.000890] Key type dns_resolver registered
[    1.016241] ALSA device list:
[    1.019360]   #0: Loopback 1
[    1.025550] Waiting for root device /dev/mmcblk0p2...
[    1.077960] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.091127] mmc0: new high speed SDHC card at address aaaa
[    1.097860] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.107434]  mmcblk0: p1 p2
[    1.136031] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.143763] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.155665] Freeing unused kernel memory: 1024K
[    1.192446] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.192446]
[    1.201594] CPU: 0 PID: 1 Comm: init Not tainted 4.14.63 #0
[    1.207154] Hardware name: Allwinner suniv Family
[    1.211946] [<c010d2a8>] (unwind_backtrace) from [<c010aeb0>] (show_stack+0x10/0x14)
[    1.219708] [<c010aeb0>] (show_stack) from [<c0114f64>] (panic+0xb8/0x24c)
[    1.226591] [<c0114f64>] (panic) from [<c011628c>] (do_exit+0x4b4/0x97c)
[    1.233293] [<c011628c>] (do_exit) from [<c0117310>] (do_group_exit+0xb4/0xb8)
[    1.240508] [<c0117310>] (do_group_exit) from [<c011fee0>] (get_signal+0x4d0/0x554)
[    1.248167] [<c011fee0>] (get_signal) from [<c010a3b8>] (do_signal+0x398/0x3fc)
[    1.255485] [<c010a3b8>] (do_signal) from [<c010a578>] (do_work_pending+0x4c/0xcc)
[    1.263055] [<c010a578>] (do_work_pending) from [<c01077c8>] (slow_work_pending+0xc/0x20)
[    1.271227] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.271227]
[  131.567859] random: crng init done

离线

楼主 #3 2020-05-03 15:38:33

chainsx
会员
注册时间: 2019-08-01
已发帖子: 37
积分: 31.5

Re: 尝试给f1c100s编译openwrt【挖】

看来是根目录被挂载成只读了,在cmdline后面加上rw,可还是Kernel panic

U-Boot SPL 2017.11 (Aug 16 2018 - 07:51:15)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2017.11 (Aug 16 2018 - 07:51:15 +0000) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

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
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
355 bytes read in 14 ms (24.4 KiB/s)
## Executing script at 80c50000
reading zImage
2877552 bytes read in 153 ms (17.9 MiB/s)
reading dtb
7464 bytes read in 23 ms (316.4 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816ffd27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (ubuntu@chainsx.cn) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Thu Aug 16 07:51:15 2018
[    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: get_random_bytes called from start_kernel+0x74/0x3c8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait rw
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    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: 22656K/32768K available (6144K kernel code, 226K rwdata, 1748K rodata, 1024K init, 255K bss, 10112K 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 : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a388c0   ( 227 kB)
[    0.000000]        .bss : 0xc0a3db70 - 0xc0a7d964   ( 256 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.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000113] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000575] Console: colour dummy device 80x30
[    0.000669] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070238] pid_max: default: 32768 minimum: 301
[    0.070594] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070638] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071888] CPU: Testing write buffer coherency: ok
[    0.073640] Setting up static identity map for 0x80100000 - 0x80100058
[    0.080067] VFP support v0.3: not present
[    0.080682] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080742] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080979] pinctrl core: initialized pinctrl subsystem
[    0.083158] NET: Registered protocol family 16
[    0.084559] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086854] No ATAGs?
[    0.113629] SCSI subsystem initialized
[    0.114387] usbcore: registered new interface driver usbfs
[    0.114535] usbcore: registered new interface driver hub
[    0.114719] usbcore: registered new device driver usb
[    0.115158] pps_core: LinuxPPS API ver. 1 registered
[    0.115186] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115245] PTP clock support registered
[    0.115919] Advanced Linux Sound Architecture Driver Initialized.
[    0.118020] clocksource: Switched to clocksource timer
[    0.131615] NET: Registered protocol family 2
[    0.133168] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.133244] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.133295] TCP: Hash tables configured (established 1024 bind 1024)
[    0.133546] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.133605] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.134109] NET: Registered protocol family 1
[    0.135365] RPC: Registered named UNIX socket transport module.
[    0.135407] RPC: Registered udp transport module.
[    0.135424] RPC: Registered tcp transport module.
[    0.135440] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137754] No memory allocated for crashlog
[    0.138477] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.153357] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.155676] NFS: Registering the id_resolver key type
[    0.155759] Key type id_resolver registered
[    0.155781] Key type id_legacy registered
[    0.155907] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.174065] Key type asymmetric registered
[    0.174107] Asymmetric key parser 'x509' registered
[    0.174177] io scheduler noop registered
[    0.174198] io scheduler deadline registered
[    0.175005] io scheduler cfq registered (default)
[    0.175044] io scheduler mq-deadline registered
[    0.175062] io scheduler kyber registered
[    0.176208] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.185954] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.271460] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.276323] console [ttyS0] disabled
[    0.296578] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.773449] console [ttyS0] enabled
[    0.798844] loop: module loaded
[    0.802738] SCSI Media Changer driver v0.25
[    0.818085] random: fast init done
[    0.821853] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.831028] libphy: Fixed MDIO Bus: probed
[    0.836089] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842740] ehci-platform: EHCI generic platform driver
[    0.848289] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.854505] ohci-platform: OHCI generic platform driver
[    0.860195] usbcore: registered new interface driver usb-storage
[    0.866809] mousedev: PS/2 mouse device common for all mice
[    0.873040] i2c /dev entries driver
[    0.877914] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.948163] sunxi-mmc 1c0f000.mmc: base:0xc28a0000 irq:18
[    0.969661] NET: Registered protocol family 10
[    0.977116] Segment Routing with IPv6
[    0.981166] NET: Registered protocol family 17
[    0.985742] can: controller area network core (rev 20170425 abi 9)
[    0.992243] NET: Registered protocol family 29
[    0.996837] 8021q: 802.1Q VLAN Support v1.8
[    1.001217] Key type dns_resolver registered
[    1.016611] ALSA device list:
[    1.019733]   #0: Loopback 1
[    1.025927] Waiting for root device /dev/mmcblk0p2...
[    1.078229] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.091374] mmc0: new high speed SDHC card at address aaaa
[    1.097997] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.107692]  mmcblk0: p1 p2
[    1.138313] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.145909] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.157051] Freeing unused kernel memory: 1024K
[    1.193779] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.193779]
[    1.202927] CPU: 0 PID: 1 Comm: init Not tainted 4.14.63 #0
[    1.208489] Hardware name: Allwinner suniv Family
[    1.213280] [<c010d2a8>] (unwind_backtrace) from [<c010aeb0>] (show_stack+0x10/0x14)
[    1.221040] [<c010aeb0>] (show_stack) from [<c0114f64>] (panic+0xb8/0x24c)
[    1.227921] [<c0114f64>] (panic) from [<c011628c>] (do_exit+0x4b4/0x97c)
[    1.234625] [<c011628c>] (do_exit) from [<c0117310>] (do_group_exit+0xb4/0xb8)
[    1.241840] [<c0117310>] (do_group_exit) from [<c011fee0>] (get_signal+0x4d0/0x554)
[    1.249499] [<c011fee0>] (get_signal) from [<c010a3b8>] (do_signal+0x398/0x3fc)
[    1.256815] [<c010a3b8>] (do_signal) from [<c010a578>] (do_work_pending+0x4c/0xcc)
[    1.264386] [<c010a578>] (do_work_pending) from [<c01077c8>] (slow_work_pending+0xc/0x20)
[    1.272559] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    1.272559]
[  131.268131] random: crng init done

离线

#4 2020-05-03 17:07:29

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,387
积分: 1902
个人网站

Re: 尝试给f1c100s编译openwrt【挖】

说不出什么骚话,只能坐等大佬把 openwrt 快快跑起来。





离线

#5 2020-05-03 21:47:55

小王子&木头人
会员
注册时间: 2018-05-08
已发帖子: 72
积分: 4

Re: 尝试给f1c100s编译openwrt【挖】

mark一下 我准备跟进spi nand版本

离线

楼主 #6 2020-05-03 22:40:36

chainsx
会员
注册时间: 2019-08-01
已发帖子: 37
积分: 31.5

Re: 尝试给f1c100s编译openwrt【挖】

终于启动成功了,
打开以下几项就可以了

[*] Advanced configuration options (for developers)  --->
[*]   Automatic rebuild of packages
 (-fno-caller-saves -fno-plt) Additional compiler options

离线

楼主 #7 2020-05-03 22:42:17

chainsx
会员
注册时间: 2019-08-01
已发帖子: 37
积分: 31.5

Re: 尝试给f1c100s编译openwrt【挖】

不过,usb好像仍然无法使用。。
难道修改了那个bit也没用?
附启动图

U-Boot SPL 2017.11 (Aug 16 2018 - 07:51:15)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2017.11 (Aug 16 2018 - 07:51:15 +0000) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

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
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
352 bytes read in 14 ms (24.4 KiB/s)
## Executing script at 80c50000
reading zImage
2883784 bytes read in 153 ms (18 MiB/s)
reading dtb
7464 bytes read in 23 ms (316.4 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fb000, end 816ffd27 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (ubuntu@chainsx.cn) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7258-5eb055306f)) #0 Thu Aug 16 07:51:15 2018
[    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: get_random_bytes called from start_kernel+0x74/0x3c8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    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: 22656K/32768K available (6144K kernel code, 226K rwdata, 1756K rodata, 1024K init, 255K bss, 10112K 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 : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a389a0   ( 227 kB)
[    0.000000]        .bss : 0xc0a3dc50 - 0xc0a7db24   ( 256 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.000046] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000114] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000578] Console: colour dummy device 80x30
[    0.000672] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070235] pid_max: default: 32768 minimum: 301
[    0.070591] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070632] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071888] CPU: Testing write buffer coherency: ok
[    0.073637] Setting up static identity map for 0x80100000 - 0x80100058
[    0.080050] VFP support v0.3: not present
[    0.080674] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080737] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080966] pinctrl core: initialized pinctrl subsystem
[    0.083191] NET: Registered protocol family 16
[    0.084550] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.086871] No ATAGs?
[    0.114153] SCSI subsystem initialized
[    0.114921] usbcore: registered new interface driver usbfs
[    0.115073] usbcore: registered new interface driver hub
[    0.115261] usbcore: registered new device driver usb
[    0.115749] pps_core: LinuxPPS API ver. 1 registered
[    0.115780] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.115842] PTP clock support registered
[    0.116559] Advanced Linux Sound Architecture Driver Initialized.
[    0.118652] clocksource: Switched to clocksource timer
[    0.132472] NET: Registered protocol family 2
[    0.134041] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.134116] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.134168] TCP: Hash tables configured (established 1024 bind 1024)
[    0.134424] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.134484] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.134996] NET: Registered protocol family 1
[    0.136249] RPC: Registered named UNIX socket transport module.
[    0.136290] RPC: Registered udp transport module.
[    0.136306] RPC: Registered tcp transport module.
[    0.136322] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.138787] No memory allocated for crashlog
[    0.139400] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.154496] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.156798] NFS: Registering the id_resolver key type
[    0.156886] Key type id_resolver registered
[    0.156908] Key type id_legacy registered
[    0.157039] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.175337] Key type asymmetric registered
[    0.175377] Asymmetric key parser 'x509' registered
[    0.175446] io scheduler noop registered
[    0.175467] io scheduler deadline registered
[    0.176277] io scheduler cfq registered (default)
[    0.176311] io scheduler mq-deadline registered
[    0.176330] io scheduler kyber registered
[    0.177462] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.187387] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.274732] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.279728] console [ttyS0] disabled
[    0.299969] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.776362] console [ttyS0] enabled
[    0.801921] loop: module loaded
[    0.805820] SCSI Media Changer driver v0.25
[    0.820884] random: fast init done
[    0.824941] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.834141] libphy: Fixed MDIO Bus: probed
[    0.839392] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.845923] ehci-platform: EHCI generic platform driver
[    0.851474] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.857696] ohci-platform: OHCI generic platform driver
[    0.863384] usbcore: registered new interface driver usb-storage
[    0.870131] mousedev: PS/2 mouse device common for all mice
[    0.876414] i2c /dev entries driver
[    0.881452] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.948794] sunxi-mmc 1c0f000.mmc: base:0xc28a0000 irq:18
[    0.970441] NET: Registered protocol family 10
[    0.977914] Segment Routing with IPv6
[    0.981963] NET: Registered protocol family 17
[    0.986545] can: controller area network core (rev 20170425 abi 9)
[    0.993040] NET: Registered protocol family 29
[    0.997635] 8021q: 802.1Q VLAN Support v1.8
[    1.002014] Key type dns_resolver registered
[    1.016898] hctosys: unable to open rtc device (rtc0)
[    1.022565] ALSA device list:
[    1.025556]   #0: Loopback 1
[    1.031966] Waiting for root device /dev/mmcblk0p2...
[    1.078903] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.092047] mmc0: new high speed SDHC card at address aaaa
[    1.098768] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.108354]  mmcblk0: p1 p2
[    1.136322] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.144052] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.155953] Freeing unused kernel memory: 1024K
[    1.335855] init: Console is alive
[    1.339988] init: - watchdog -
[    1.468518] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.515787] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.534244] init: - preinit -
[    2.009340] random: jshn: uninitialized urandom read (4 bytes read)
[    2.119069] random: jshn: uninitialized urandom read (4 bytes read)
[    2.193781] random: jshn: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.550419] mount_root: mounting /dev/root
[    5.573333] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.691753] urandom-seed: Seed file not found (/etc/urandom.seed)
[    5.759495] procd: - early -
[    5.762655] procd: - watchdog -
[    7.479656] procd: - watchdog -
[    7.483590] procd: - ubus -
[    7.512830] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.541707] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.549356] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.560740] procd: - init -
Please press Enter to activate this console.
[    8.015143] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.049449] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.100604] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.123542] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.243455] xt_time: kernel timezone is -0000
[    8.269859] PPP generic driver version 2.4.2
[    8.279030] NET: Registered protocol family 24
[    8.291659] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# df -Th
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            ext4          252.0M      7.5M    239.4M   3% /
tmpfs                tmpfs          11.6M     44.0K     11.5M   0% /tmp
tmpfs                tmpfs         512.0K         0    512.0K   0% /dev
root@OpenWrt:/# free -m
             total       used       free     shared    buffers     cached
Mem:         23680      15960       7720         44        632       3800
-/+ buffers/cache:      11528      12152
Swap:            0          0          0

离线

楼主 #8 2020-05-03 22:45:04

chainsx
会员
注册时间: 2019-08-01
已发帖子: 37
积分: 31.5

Re: 尝试给f1c100s编译openwrt【挖】

我把镜像顺便附上,大佬们帮忙看看是哪不对?
openwrt-sunxi-arm9-suniv-f1c100s-licheepi-nano-ext4-sdcard_img.gz

配置文件(下载后重命名为.config):
config.txt

最近编辑记录 chainsx (2020-05-03 22:47:56)

离线

#9 2020-05-04 08:55:20

staunchheart
会员
注册时间: 2019-12-17
已发帖子: 229
积分: 186

Re: 尝试给f1c100s编译openwrt【挖】

顶一下,给楼主喊一下666,希望更多的人入坑,考虑到GITHUB下载慢,这段时间改IP都没用,所以下载慢。
故装其移到GITEE
git clone -b licheepi-nano https://gitee.com/zhangheyang/openwrt.git
如果是下面这里慢(如果用上面的GITEE,此处已更新了feeds的GIT地址)
./scripts/feeds update -a && ./scripts/feeds install -a
修改 feeds.conf.default
src-git packages https://gitee.com/zhangheyang/opwnwrt_packages.git^35e0b737ab496f5b51e80079b0d8c9b442e223f5
src-git luci https://gitee.com/zhangheyang/openwrt_luci.git^f64b1523447547032d5280fb0bcdde570f2ca913
src-git routing https://gitee.com/zhangheyang/openwrt_routing.git^1b9d1c419f0ecefda51922a7845ab2183d6acd76
src-git telephony https://gitee.com/zhangheyang/openwrt_telephony.git^b9d7b321d15a44c5abb9e5d43a4ec78abfd9031b
这样就快了,另外依赖的dl等下我上传到百度网盘,这样make时不需要再去下载,让各位大老安心研究。

离线

#10 2020-05-04 09:02:42

staunchheart
会员
注册时间: 2019-12-17
已发帖子: 229
积分: 186

Re: 尝试给f1c100s编译openwrt【挖】

dl目录的压缩包上传到百度网盘
https://pan.baidu.com/s/1LcPxGbuLvSA7qypwRGofFw
提取码:kcde
会在QQ群里也上传一份,以便下载。
文件名:openwrt_f1c100s_dl.tar.gz

另外告诉大家,GITHUB上的项目,(只要是GIT项目,都可以在GITEE上进行同步.
参考:https://gitee.com/help/articles/4284
就是说道,点你的头相边上的+号,然后从GITHUB、GITLAB导入。
进去后选从URL导入,然后同步,大的项目要些时间,过一段时间进去点一下同步,大不了过一晚再点,基本上OK。

最近编辑记录 staunchheart (2020-05-04 09:25:32)

离线

#11 2023-10-09 19:24:14

colt
会员
注册时间: 2023-10-07
已发帖子: 5
积分: 5

Re: 尝试给f1c100s编译openwrt【挖】

怎么搞成通过spi flash启动

离线

页脚

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

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