Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Missing boot.ext4 in release #2

Open
per1cycle opened this issue Sep 5, 2024 · 2 comments
Open

Missing boot.ext4 in release #2

per1cycle opened this issue Sep 5, 2024 · 2 comments

Comments

@per1cycle
Copy link

由于我目前lp4a上sd卡启动似乎有点问题,只使用emmc烧写来进行对系统的更换,在手头想刷个openwrt。
首先参考了https://github.com/ruyisdk/openwrt-th1520/tree/th1520 ,然后编译中出现了kernel编译,缺少dts等一系列问题,在使用了很trick的方法(复制revy老师firmware中的固件和删除kernel中未使用函数,变量这类)以后最后编译出来的固件烧录之后依然无法启动,具体日志等我晚些重新编译一边提交上来。
于是乎我打算偷懒直接找现成的固件,于是kamisama就指引我到这里来了,但是似乎在release中没看到boot.ext4的文件? 我看lp4a的烧写脚本似乎需要准备一个u-boot, rootfs.ext4, bootfs.ext4 🥺🥺
以下为原始的烧录bat脚本

:: Script to flash imagess via fastboot, edit image path first

@echo off
call:RunACmd ".\fastboot.exe flash ram images\u-boot-with-spl-sbc8g.bin"
call:RunACmd ".\fastboot.exe reboot"
ping 127.0.0.1 -n 5 >nul
call:RunACmd ".\fastboot.exe flash uboot  images\u-boot-with-spl-sbc8g.bin"
call:RunACmd ".\fastboot.exe flash boot  images\boot-lpi4a-20240601_180941.ext4"
call:RunACmd ".\fastboot.exe flash root  images\root-lpi4a-20240601_180941.ext4"

pause
exit

:RunACmd
SETLOCAL
set CmdStr=%1
echo IIIIIIIIIIIIIIII Run Cmd:  %CmdStr% 
%CmdStr:~1,-1% || goto RunACmd

GOTO:EOF

🥺🥺🥺

@per1cycle
Copy link
Author

per1cycle commented Sep 5, 2024

使用 revyos的uboot:

CPU:   rv64imafdcvsu
Model: T-HEAD c910 light
DRAM:  16 GiB
C910 CPU FREQ: 750MHz
AHB2_CPUSYS_HCLK FREQ: 250MHz
AHB3_CPUSYS_PCLK FREQ: 125MHz
PERISYS_AHB_HCLK FREQ: 250MHz
PERISYS_APB_PCLK FREQ: 62MHz
GMAC PLL POSTDIV FREQ: 1000MHZ
DPU0 PLL POSTDIV FREQ: 1188MHZ
DPU1 PLL POSTDIV FREQ: 1188MHZ
MMC:   sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
Error reading output register
Warning: cannot get lcd-en GPIO
LCD panel cannot be found : -121
splash screen startup cost 215 ms
In:    serial
Out:   serial
Err:   serial
light_c910_set_gpio_output_high: trying to set gpio output high
light_c910_set_gpio_output_high: could not find a /config/select-gpio
ethaddr: 0e:f8:8c:c5:ba:5c
eth1addr: 0e:f8:8c:c5:ba:5d
Net:   ethernet@ffe7070000 (eth0) using MAC address - 0e:f8:8c:c5:ba:5c
eth0: ethernet@ffe7070000ethernet@ffe7070000:0 is connected to ethernet@ffe7070000.  Reconnecting to ethernet@ffe7060000
ethernet@ffe7060000 (eth1) using MAC address - 0e:f8:8c:c5:ba:5d
, eth1: ethernet@ffe7060000
Hit any key to stop autoboot:  0 
Unknown command 'usb' - try 'help'
50248 bytes read in 2 ms (24 MiB/s)
5281216 bytes read in 21 ms (239.8 MiB/s)
1608 bytes read in 1 ms (1.5 MiB/s)
271096 bytes read in 3 ms (86.2 MiB/s)
Retrieving file: /extlinux/extlinux.conf
228 bytes read in 0 ms
1:	OpenWrt
Retrieving file: /kernel.img
12604416 bytes read in 47 ms (255.8 MiB/s)
append: console=ttyS0,115200 root=PARTUUID=80a5a8e9-c744-491a-93c1-4f4194fd690a rw earlycon clk_ignore_unused loglevel=7 eth=$ethaddr rootrwoptions=rw,noatime init=/sbin/init
Retrieving file: /thead/light-lpi4a-16gb.dtb
Skipping OpenWrt for failure retrieving fdt
Unknown command 'usb' - try 'help'
dwc3_gadget_start maximum_speed:5 revision:0x5533330b
dwc3_gadget_start DWC3_DCFG:0x80804
Light LPI4A 16G# 

使用release中的uboot

    |   ___   RISC-V  ||  ___ |   /|\_  /|\_
    +--/ o \----------++-/ o \+  _/ \  _/ \
       \___/             \___/

U-Boot SPL 2020.01-gff21b9f0 (Nov 11 2023 - 19:17:31 +0000)
FM[1] lpddr4x dualrank freq=3733 64bit dbi_off=n sdram init
ddr initialized, jump to uboot
image has no header


U-Boot 2020.01-gff21b9f0 (Nov 11 2023 - 19:17:31 +0000)

CPU:   rv64imafdcvsu
Model: T-HEAD c910 light
DRAM:  16 GiB
C910 CPU FREQ: 750MHz
AHB2_CPUSYS_HCLK FREQ: 250MHz
AHB3_CPUSYS_PCLK FREQ: 125MHz
PERISYS_AHB_HCLK FREQ: 250MHz
PERISYS_APB_PCLK FREQ: 62MHz
GMAC PLL POSTDIV FREQ: 1000MHZ
DPU0 PLL POSTDIV FREQ: 1188MHZ
DPU1 PLL POSTDIV FREQ: 1188MHZ
MMC:   sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
Error reading output register
Warning: cannot get lcd-en GPIO
LCD panel cannot be found : -121
splash screen startup cost 15 ms
In:    serial
Out:   serial
Err:   serial
Use random addr as fixed mac addr
Saving Environment to MMC... Writing to MMC(0)... OK
ethaddr: 1e:51:dc:57:d4:f4
eth1addr: 1e:51:dc:57:d4:f5
Net:   ethernet@ffe7070000 (eth0) using MAC address - 1e:51:dc:57:d4:f4
eth0: ethernet@ffe7070000ethernet@ffe7070000:0 is connected to ethernet@ffe7070000.  Reconnecting to ethernet@ffe7060000
ethernet@ffe7060000 (eth1) using MAC address - 1e:51:dc:57:d4:f5
, eth1: ethernet@ffe7060000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
** Unrecognized filesystem type **
cp - memory copy

Usage:
cp [.b, .w, .l, .q] source target count
** Unrecognized filesystem type **
cp - memory copy

Usage:
cp [.b, .w, .l, .q] source target count
** Unrecognized filesystem type **
Retrieving file: /extlinux/extlinux.conf
** Unrecognized filesystem type **
Error reading config file
Light LPI4A 16G# 

@chainsx
Copy link
Owner

chainsx commented Sep 5, 2024

为什么你的 SD 卡启动会有些问题呢?可以详细讲讲吗?
SD 卡启动和我所支持的系统都需要用到这个 u-boot:
https://github.com/chainsx/thead-u-boot/releases

我比较倾向于构建 RAW 镜像然后使用 ums 功能刷写到 EMMC 来简化刷写流程(但是这样做到底简化没有呢?)
刷写方式参考这里:
https://www.armbian.com/licheepi-4a/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants