sipeed_wiki icon indicating copy to clipboard operation
sipeed_wiki copied to clipboard

[Gitalk:/hardware/zh/lichee/RV/flash.html] Lichee RV 系统烧录 - Sipeed Wiki

Open Neutree opened this issue 3 years ago • 8 comments

https://wiki.sipeed.com/hardware/zh/lichee/RV/flash.html

Neutree avatar Dec 31 '21 08:12 Neutree

20211230_LicheeRV_debian_d1_hdmi_8723ds 内核报错: [Mon May 24 07:28:27 2021] Unable to handle kernel paging request at virtual address ffffffdf8099707e [Mon May 24 07:28:27 2021] Oops [#80] [Mon May 24 07:28:27 2021] Modules linked in: xt_time xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG uvcvideo videobuf2_vmalloc videobuf2_memops iptable_filter ipt_REJECT hdmi20 fuse [Mon May 24 07:28:27 2021] CPU: 0 PID: 828 Comm: (t-daemon) Tainted: G D 5.4.61 #217 [Mon May 24 07:28:27 2021] sepc: ffffffdf8099707e ra : ffffffe000531e80 sp : ffffffe008e2fd10 [Mon May 24 07:28:27 2021] gp : ffffffe0008f4500 tp : ffffffe01e86b700 t0 : ffffffe008e32b40 [Mon May 24 07:28:27 2021] t1 : 0000000000000002 t2 : ffffffe01cf56908 s0 : ffffffe008e2fd60 [Mon May 24 07:28:27 2021] s1 : ffffffe0095b1700 a0 : ffffffe0095b1700 a1 : ffffffe0095b1700 [Mon May 24 07:28:27 2021] a2 : ffffffe0095a9c78 a3 : 0000000000000001 a4 : ffffffe008e30d40 [Mon May 24 07:28:27 2021] a5 : ffffffdf8099707e a6 : 0000000000000000 a7 : ffffffffffffff7f [Mon May 24 07:28:27 2021] s2 : ffffffdf80995218 s3 : 0000000000000000 s4 : ffffffdf80995218 [Mon May 24 07:28:27 2021] s5 : ffffffe0095b1700 s6 : 0000000000000000 s7 : fffffffffffff000 [Mon May 24 07:28:27 2021] s8 : 0000000000000000 s9 : 0000003fbf925830 s10: 0000000000000000 [Mon May 24 07:28:27 2021] s11: 0000003fffd57308 t3 : ffffffe01f0f86c8 t4 : ffffffe0008f27d8 [Mon May 24 07:28:27 2021] t5 : 0000000000000038 t6 : ffffffe008e32b2b [Mon May 24 07:28:27 2021] sstatus: 0000000200000120 sbadaddr: ffffffdf8099707e scause: 000000000000000c [Mon May 24 07:28:27 2021] ---[ end trace 3115490e54ddffcc ]---

sheerfish999 avatar Feb 26 '22 07:02 sheerfish999

Tina 的包管理软件应该如何使用?

bittervan avatar May 22 '22 09:05 bittervan

[157]HELLO! BOOT0 is starting!                                                  
[160]BOOT0 commit : 27369ab                                                     
                                                                                
OpenSBI v0.6                                                                    
   ____                    _____ ____ _____                                     
  / __ \                  / ____|  _ \_   _|                                    
 | |  | |_ __   ___ _ __ | (___ | |_) || |                                      
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |                                      
 | |__| | |_) |  __/ | | |____) | |_) || |_                                     
  \____/| .__/ \___|_| |_|_____/|____/_____|                                    
        | |                                                                     
        |_|                                                                     
                                                                                
Platform Name          : T-HEAD Xuantie Platform                               
Platform HART Features : RV64ACDFIMSUVX                                         
Platform Max HARTs     : 1                                                      
Current Hart           : 0                                                      
Firmware Base          : 0x40000400                                             
Firmware Size          : 75 KB                                                  
Runtime SBI Version    : 0.2                                                    
                                                                                
MIDELEG : 0x0000000000000222                                                    
MEDELEG : 0x000000000000b1ff                                                    
PMP0    : 0x0000000040000000-0x000000004001ffff (A)                             
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)                       
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)                       
PMP3    : 0x0000000000020000-0x0000000000027fff (A,�                            
                                                                                
U-Boot 2018.05-g0a88ac9-dirty-config-dirty (Dec 14 2021 - 18:32:11 +0800) Allwiy
                                                                                
[00.322]DRAM:  512 MiB                                                          
[00.324]Relocation Offset is: 1df30000                                          
[00.328]secure enable bit: 0                                                    
[00.331]CPU=1008 MHz(1008),PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz   
[00.338]flash init start                                                        
[00.340]workmode = 0,storage type = 1                                           
[00.343][mmc]: mmc driver ver uboot2018:2021-04-16 14:23:00-1                   
[00.349][mmc]: get sdc_type fail and use default host:tm1.                      
[00.355][mmc]: can't find node "mmc0",will add new node                         
[00.360][mmc]: fdt err returned <no error>                                      
[00.364][mmc]: Using default timing para                                        
[00.368][mmc]: SUNXI SDMMC Controller Version:0x50310                           
[00.400][mmc]: card_caps:0x3000000a                                             
[00.403][mmc]: host_caps:0x3000003f                                             
[00.408]sunxi flash init ok                                                     
[00.411]line:714 init_clocks                                                    
__clk_init: clk pll_periph0x2 already initialized                               
register fix_factor clk error                                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.444]Loading Environment from SUNXI_FLASH... GUID Partition Table Header sig5
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
Can't find env partition                                                        
*** Warning - no device, using default environment                              
                                                                                
Failed (-19)                                                                    
[00.479]out of usb burn from boot: not need burn key                            
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.506]update part info                                                        
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.531]update bootcmd                                                          
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.581]change working_fdt 0x5eaefda8 to 0x5eacfda8                             
[00.600]update dts                                                              
Hit any key to stop autoboot:  0                                                
## Error: "distro_bootcmd" not defined                                          
=> 

LicheeRV Tina Linux 用 PhoenixCard_V3.1.0_20130618 刷写到8G TF卡, 无法启动 用 PhoenixCard_V4.2.5 刷写到32G TF卡, 没有U-Boot 输出

Debian 烧录失败

买了还没启动过, 心态小炸

initdc avatar Jun 04 '22 06:06 initdc

@bittervan Tina 的包管理软件应该如何使用?

和 openwrt 同款包管理工具啊...opkg

wonderfullook avatar Jul 26 '22 07:07 wonderfullook

@bittervan Tina 的包管理软件应该如何使用?

和 openwrt 同款包管理工具啊...opkg

非常感谢,现在已经明白了

bittervan avatar Jul 26 '22 07:07 bittervan

@initdc

[157]HELLO! BOOT0 is starting!                                                  
[160]BOOT0 commit : 27369ab                                                     
                                                                                
OpenSBI v0.6                                                                    
   ____                    _____ ____ _____                                     
  / __ \                  / ____|  _ \_   _|                                    
 | |  | |_ __   ___ _ __ | (___ | |_) || |                                      
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |                                      
 | |__| | |_) |  __/ | | |____) | |_) || |_                                     
  \____/| .__/ \___|_| |_|_____/|____/_____|                                    
        | |                                                                     
        |_|                                                                     
                                                                                
Platform Name          : T-HEAD Xuantie Platform                               
Platform HART Features : RV64ACDFIMSUVX                                         
Platform Max HARTs     : 1                                                      
Current Hart           : 0                                                      
Firmware Base          : 0x40000400                                             
Firmware Size          : 75 KB                                                  
Runtime SBI Version    : 0.2                                                    
                                                                                
MIDELEG : 0x0000000000000222                                                    
MEDELEG : 0x000000000000b1ff                                                    
PMP0    : 0x0000000040000000-0x000000004001ffff (A)                             
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)                       
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)                       
PMP3    : 0x0000000000020000-0x0000000000027fff (A,�                            
                                                                                
U-Boot 2018.05-g0a88ac9-dirty-config-dirty (Dec 14 2021 - 18:32:11 +0800) Allwiy
                                                                                
[00.322]DRAM:  512 MiB                                                          
[00.324]Relocation Offset is: 1df30000                                          
[00.328]secure enable bit: 0                                                    
[00.331]CPU=1008 MHz(1008),PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz   
[00.338]flash init start                                                        
[00.340]workmode = 0,storage type = 1                                           
[00.343][mmc]: mmc driver ver uboot2018:2021-04-16 14:23:00-1                   
[00.349][mmc]: get sdc_type fail and use default host:tm1.                      
[00.355][mmc]: can't find node "mmc0",will add new node                         
[00.360][mmc]: fdt err returned <no error>                                      
[00.364][mmc]: Using default timing para                                        
[00.368][mmc]: SUNXI SDMMC Controller Version:0x50310                           
[00.400][mmc]: card_caps:0x3000000a                                             
[00.403][mmc]: host_caps:0x3000003f                                             
[00.408]sunxi flash init ok                                                     
[00.411]line:714 init_clocks                                                    
__clk_init: clk pll_periph0x2 already initialized                               
register fix_factor clk error                                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.444]Loading Environment from SUNXI_FLASH... GUID Partition Table Header sig5
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
Can't find env partition                                                        
*** Warning - no device, using default environment                              
                                                                                
Failed (-19)                                                                    
[00.479]out of usb burn from boot: not need burn key                            
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.506]update part info                                                        
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.531]update bootcmd                                                          
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid GPT ***                                   
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645       
part_get_info_efi: *** ERROR: Invalid Backup GPT ***                            
[00.581]change working_fdt 0x5eaefda8 to 0x5eacfda8                             
[00.600]update dts                                                              
Hit any key to stop autoboot:  0                                                
## Error: "distro_bootcmd" not defined                                          
=> 

LicheeRV Tina Linux 用 PhoenixCard_V3.1.0_20130618 刷写到8G TF卡, 无法启动 用 PhoenixCard_V4.2.5 刷写到32G TF卡, 没有U-Boot 输出

Debian 烧录失败

买了还没启动过, 心态小炸

镜像都是用 PhoenixCard 烧录的,上面也提供了下载方法。烧录前可以先把sd卡格式化一下

wonderfullook avatar Jul 26 '22 09:07 wonderfullook

可以烧录freebsd系统吗?

dangyajun avatar Dec 13 '22 05:12 dangyajun

@dangyajun 可以烧录freebsd系统吗?

Yes, kernel and u-boot compiled then flash to sdcard. No HDMI. Display screen by UART console. FreeBSD will boot to log in prompt. USB dongle for network and remote SSH.

Sources used: https://wiki.freebsd.org/riscv/AllwinnerD1

acmeprims avatar Sep 20 '25 18:09 acmeprims