|
发表于 2024-6-22 20:05:57
|
显示全部楼层
本帖最后由 lostartemis 于 2024-6-22 20:09 编辑
set autocmd "bl /dev/fs/ext4@usb0a/boot/boot.cfg"
set
reboot
后,依然启动Now booting the 'LoongOS (2k300)' -Loading file: (emmc0,0)/boot/vmlinuz (elf)
boot.cfg文件内容如下(sda与sda1都测试过,不行):
timeout 3
default 0
showmenu 1
title 'Loonginx'
kernel (usb0,0)/boot/vmlinuz
args console=tty console=ttyS0,115200 rdinit=/sbin/init rootdelay=5 root=/dev/sda
命令如下:
PMON> devls
Device name Type
emmc0 DISK
syn0 IFNET
syn1 IFNET
usb0 DISK
loopdev0 DISK
PMON> set autocmd "bl /dev/fs/ext4@usb0a/boot/boot.cfg"
PMON> set
autocmd = "bl /dev/fs/ext4@usb0a/boot/boot.cfg"
memsize = 176
highmemsize = 256
cpuclock = 1000000000
vramsize = 16
sharevram = 0
systype = loongson
brkcmd = "l -r @cpc 1"
datasize = -b [-b -h -w -d]
dlecho = off [off on lfeed]
dlproto = none [none XonXoff EtxAck]
bootp = no [no sec pri save]
hostport = tty0
inalpha = hex [hex symbol]
inbase = 16 [auto 8 10 16]
moresz = 10
prompt = "PMON> "
regstyle = sw [hw sw]
regsize = 32 [32 64]
rptcmd = trace [off on trace]
trabort = ^K
ulcr = cr [cr lf crlf]
uleof = %
showsym = yes [no yes]
fpfmt = both [both double single none]
fpdis = yes [no yes]
mtdparts = nand-flash:30M@0(kernel)ro,-(rootfs)
bootdelay = 3
PMON>
PMON>
PMON>
PMON> reboot
|
|