您尚未登录。

楼主 #1 2020-03-12 23:19:02

Iron
会员
注册时间: 2018-10-23
已发帖子: 65
积分: 29.5
个人网站

lichee-pi_zero v3s Windows 环境下 USB FEL 下载到 RAM 运行 OpenWrt 19.07.1 测试

# lichee-pi_zero v3s Windows 环境下 USB FEL 下载到 RAM 运行 OpenWrt 19.07.1 测试

Windows 环境下通过 USB 下载到 RAM 里运行,无需烧写 flash 和插入 SD 卡,下载脚本如下:
注意 initrd=0x41B00000,12M,12M表示 rootfs.cpio 大小,小于实际大小将导致 rootfs 挂载错误。

"..\tools\sunxi-fel\sunxi-fel.exe" -p uboot u-boot-sunxi-with-spl.bin write 0x41000000 zImage write 0x41800000 ..\u-boot\sun8i-v3s-licheepi-ethernet.dtb write 0x41B00000 rootfs.cpio

@echo "setenv bootargs console=ttyS0,115200 initrd=0x41B00000,12M; bootz 0x41000000 - 0x41800000"

测试文件,百度网盘
链接:https://pan.baidu.com/s/1JczDhwqta2yDenbXOXzc0g
提取码:r9ax

roots 文件取致 docker_hub >> openwrtorg/imagebuilder:sunxi-cortexa7-19.07.1 >> make image 输出 rootfs.squashfs
由于 kernel,驱动,rootfs 未完全正确配置,仅作运行 openwrt 体验测试.

运行日志:

U-Boot SPL 2020.01 (Mar 12 2020 - 17:57:35 +0800)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2020.01 (Mar 12 2020 - 17:57:35 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero Ethernet
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No working controllers found
No ethernet found.
No ethernet found.
=> 
=> setenv bootargs console=ttyS0,115200 initrd=0x41B00000,12M; bootz 0x41000000 - 0x41800000
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff8b8 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.105 (iron@iron-debian-ipason) (gcc version 8.3.0 (Buildroot 2019.11.1-g23989e8-dirty)) #1 SMP Thu Mar 12 17:59:02 +08 2020
[    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 Ethernet
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Failed to reserve 16 MiB
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x9c/0x408 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s30476 r8192 d22772 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 initrd=0x41B00000,12M
[    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: 42652K/65536K available (6144K kernel code, 420K rwdata, 1528K rodata, 1024K init, 242K bss, 22884K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 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)   ( 421 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 243 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000212] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000437] Console: colour dummy device 80x30
[    0.000495] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000512] pid_max: default: 32768 minimum: 301
[    0.000677] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000695] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001470] CPU: Testing write buffer coherency: ok
[    0.001961] /cpus/cpu@0 missing clock-frequency property
[    0.001990] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002742] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002992] rcu: Hierarchical SRCU implementation.
[    0.003803] smp: Bringing up secondary CPUs ...
[    0.003825] smp: Brought up 1 node, 1 CPU
[    0.003834] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003842] CPU: All CPU(s) started in HYP mode.
[    0.003847] CPU: Virtualization extensions available.
[    0.004688] devtmpfs: initialized
[    0.007668] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007954] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007989] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.008217] pinctrl core: initialized pinctrl subsystem
[    0.009278] NET: Registered protocol family 16
[    0.009730] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010992] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011012] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022576] SCSI subsystem initialized
[    0.023267] usbcore: registered new interface driver usbfs
[    0.023339] usbcore: registered new interface driver hub
[    0.023447] usbcore: registered new device driver usb
[    0.023687] pps_core: LinuxPPS API ver. 1 registered
[    0.023698] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023719] PTP clock support registered
[    0.023981] Advanced Linux Sound Architecture Driver Initialized.
[    0.025171] clocksource: Switched to clocksource arch_sys_counter
[    0.035939] NET: Registered protocol family 2
[    0.036606] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.036644] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036667] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036691] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036841] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.036893] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037111] NET: Registered protocol family 1
[    0.037964] RPC: Registered named UNIX socket transport module.
[    0.037986] RPC: Registered udp transport module.
[    0.037993] RPC: Registered tcp transport module.
[    0.037999] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038300] Unpacking initramfs...
[    0.187059] Initramfs unpacking failed: junk in compressed archive
[    0.199590] Freeing initrd memory: 12288K
[    0.201624] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.208998] NFS: Registering the id_resolver key type
[    0.209053] Key type id_resolver registered
[    0.209060] Key type id_legacy registered
[    0.210829] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.210855] io scheduler noop registered
[    0.210863] io scheduler deadline registered
[    0.211069] io scheduler cfq registered (default)
[    0.211084] io scheduler mq-deadline registered
[    0.211092] io scheduler kyber registered
[    0.211876] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.215765] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.278274] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.281407] console [ttyS0] disabled
[    0.301685] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[    0.915558] console [ttyS0] enabled
[    0.921714] libphy: Fixed MDIO Bus: probed
[    0.925921] CAN device driver interface
[    0.930159] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD0
[    0.936052] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD1
[    0.941883] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD2
[    0.947731] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD3
[    0.953558] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD4
[    0.959398] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD5
[    0.965235] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD7
[    0.971062] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD8
[    0.976898] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD9
[    0.982725] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD10
[    0.988648] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD12
[    0.994561] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD13
[    1.000483] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD15
[    1.006412] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD16
[    1.012325] sun8i-v3s-pinctrl 1c20800.pinctrl: unknown pin PD17
[    1.018503] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    1.024294] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.030518] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 38000 (expect 58000)
[    1.039916] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.047157] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.054372] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.059345] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.066138] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.071790] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.077673] libphy: stmmac: probed
[    1.081769] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    1.088123] libphy: mdio_mux: probed
[    1.091729] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    1.098133] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    1.108828] libphy: mdio_mux: probed
[    1.112700] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.119358] ehci-platform: EHCI generic platform driver
[    1.124697] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.130978] ohci-platform: OHCI generic platform driver
[    1.137540] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.144339] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.149139] i2c /dev entries driver
[    1.153820] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.162468] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[    1.195210] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.203772] usbcore: registered new interface driver usbhid
[    1.209452] usbhid: USB HID core driver
[    1.215395] NET: Registered protocol family 17
[    1.219884] can: controller area network core (rev 20170425 abi 9)
[    1.226230] NET: Registered protocol family 29
[    1.230677] can: raw protocol (rev 20170425)
[    1.234944] can: broadcast manager protocol (rev 20170425 t)
[    1.240648] can: netlink gateway (rev 20170425) max_hops=1
[    1.246474] Key type dns_resolver registered
[    1.250835] Registering SWP/SWPB emulation handler
[    1.263293] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.274231] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    1.282874] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.288725] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.297844] hub 1-0:1.0: USB hub found
[    1.301811] hub 1-0:1.0: 1 port detected
[    1.308483] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:07:27 UTC (447)
[    1.316968] ALSA device list:
[    1.319948]   No soundcards found.
[    1.325460] Freeing unused kernel memory: 1024K
[    1.330200] Run /init as init process
[    1.375476] init: Console is alive
[    1.379208] init: - watchdog -
[    1.386185] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.393761] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.403639] init: - preinit -
[    1.544378] random: jshn: uninitialized urandom read (4 bytes read)
[    1.579390] random: jshn: uninitialized urandom read (4 bytes read)
[    1.604300] random: jshn: uninitialized urandom read (4 bytes read)
[    1.629396] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[    1.640565] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    1.647965] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    1.655652] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
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
[    4.779625] mount_root: mounting /dev/root
[    4.788965] urandom-seed: Seed file not found (/etc/urandom.seed)
[    4.822172] procd: - early -
[    4.826303] procd: - watchdog -
[    5.648485] procd: - watchdog -
[    5.652013] procd: - ubus -
[    5.659878] urandom_read: 1 callbacks suppressed
[    5.659890] random: ubusd: uninitialized urandom read (4 bytes read)
[    5.705582] random: ubusd: uninitialized urandom read (4 bytes read)
[    5.712395] random: ubusd: uninitialized urandom read (4 bytes read)
[    5.719743] procd: - init -
Please press Enter to activate this console.
[    5.998354] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.016215] kmodloader: done loading kernel modules from /etc/modules.d/*
[    6.027208] urngd: v1.0.2 started.
[    6.078768] random: crng init done
[    6.082196] random: 3 urandom warning(s) missed due to ratelimiting



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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.1, r10911-c155900f66
 -----------------------------------------------------
=== 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:/# [   31.845166] vcc3v0: disabling
[   31.848160] vcc3v3: disabling
[   31.851125] vcc5v0: disabling

root@OpenWrt:/# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4352 (4.2 KiB)  TX bytes:4352 (4.2 KiB)

root@OpenWrt:/# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 02:03:AE:96:27:E8  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:31 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4352 (4.2 KiB)  TX bytes:4352 (4.2 KiB)

root@OpenWrt:/# ifup eth0
Interface eth0 not found
root@OpenWrt:/# ifconfig eth0 up
[   79.462208] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[   79.473288] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[   79.480734] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   79.488421] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
root@OpenWrt:/# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 02:03:AE:96:27:E8  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:31 

root@OpenWrt:/# dhcpc eth0
/bin/ash: dhcpc: not found
root@OpenWrt:/# udhcpc eth0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
[  126.325651] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

udhcpc: sending select for 192.168.2.176
udhcpc: lease of 192.168.2.176 obtained, lease time 43200
udhcpc: ifconfig eth0 192.168.2.176 netmask 255.255.255.0 broadcast 192.168.2.255
udhcpc: setting default routers: 192.168.2.1
root@OpenWrt:/# 
root@OpenWrt:/# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 02:03:AE:96:27:E8  
          inet addr:192.168.2.176  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1879 (1.8 KiB)  TX bytes:1026 (1.0 KiB)
          Interrupt:31 

root@OpenWrt:/# cat /etc/hostname 
licheepi-zero-xwiron
root@OpenWrt:/# netsta -tunpl
/bin/ash: netsta: not found
root@OpenWrt:/# netstat -tunpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 192.168.2.176:53        0.0.0.0:*               LISTEN      331/dnsmasq
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      331/dnsmasq
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      368/dropbear
netstat: /proc/net/tcp6: No such file or directory
udp        0      0 192.168.2.176:53        0.0.0.0:*                           331/dnsmasq
udp        0      0 127.0.0.1:53            0.0.0.0:*                           331/dnsmasq
netstat: /proc/net/udp6: No such file or directory
root@OpenWrt:/# 

离线

楼主 #3 2020-03-12 23:34:21

Iron
会员
注册时间: 2018-10-23
已发帖子: 65
积分: 29.5
个人网站

Re: lichee-pi_zero v3s Windows 环境下 USB FEL 下载到 RAM 运行 OpenWrt 19.07.1 测试

firstman 说:

请教是如何移植 openwrt 到 V3s 的?

openwrt rootfs 取至 openwrt imagebuilder sunxi-coretex-a7 的输出 rootfs.squashfs 再解压出来的文件。

我这里是利用 buildroot 配置 rootfs 目录,取消默认的 busybox.

Symbol: BR2_ROOTFS_OVERLAY [=/home/iron/workplace/openwrt/openwrt-19.07.1-sunxi-cortexa7-rootfs/squashfs-root]                                                                                                              
Type  : string                                                                                                                                                                                                              
Prompt: Root filesystem overlay directories                                                                                                                                                                                         
    Location:                                                                                                                                                                                                         (4) -> System configuration                                                                                                                                                                                                  
  x   Defined at system/Config.in:510  

离线

楼主 #5 2020-03-12 23:42:44

Iron
会员
注册时间: 2018-10-23
已发帖子: 65
积分: 29.5
个人网站

Re: lichee-pi_zero v3s Windows 环境下 USB FEL 下载到 RAM 运行 OpenWrt 19.07.1 测试

firstman 说:

还是没看明白具体从哪里克隆代码, 配置,编译的呢.

https://hub.docker.com/r/openwrtorg/imagebuilder

make image

输出文件在 build_dir 里。。

离线

楼主 #8 2020-08-26 00:39:59

Iron
会员
注册时间: 2018-10-23
已发帖子: 65
积分: 29.5
个人网站

Re: lichee-pi_zero v3s Windows 环境下 USB FEL 下载到 RAM 运行 OpenWrt 19.07.1 测试

哦豁哦豁 说:

请问楼主, openwrt 怎么移植?

没有移植,主要通过 dockerhub 里的 openwrt imagebuilder, 选择对应芯片分支镜像,然后 make image, 会在目录下生成一个 rootfs 目录(具体生成方法可以研究 make image 脚本),提取 rootfs 目录后,再利用 buildroot 选择 rootfs overlay 生成不同格式的 rootfs 镜像,最后挂载到 kernel 就可以运行了。实际运行估计还要修改 rootfs 配置,比如 root 密码,getty console 配置,network init 脚本等。

离线

页脚

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

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