Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot boot from usb #79

Open
soitun opened this issue Apr 22, 2023 · 2 comments
Open

cannot boot from usb #79

soitun opened this issue Apr 22, 2023 · 2 comments

Comments

@soitun
Copy link

soitun commented Apr 22, 2023

I operate as follows:
first, Create an instance
go install github.com/gokrazy/tools/cmd/gok@main go install github.com/rtr7/tools/cmd/…@latest mkdir /tmp/recovery gok -i router7 new gok -i router7 edit
secend, Modify config.json to
{ "Hostname": "router7", "Packages": [ "github.com/gokrazy/fbstatus", "github.com/gokrazy/hello", "github.com/gokrazy/serial-busybox", "github.com/gokrazy/breakglass" "github.com/rtr7/router7/cmd/…" ], "SerialConsole": "ttyS0,115200", "GokrazyPackages": [ "github.com/gokrazy/gokrazy/cmd/ntp", "github.com/gokrazy/gokrazy/cmd/randomd" ], "KernelPackage": "github.com/rtr7/kernel", "FirmwarePackage": "github.com/rtr7/kernel", "EEPROM Package": "" }
Then, build an image:
GOARCH=amd64 gok -i router7 overwrite --full /dev/sdc
sdc is usb stick

Insert the usb into the pc, start the boot, but the following error occurs,
/dev/root: Can't open blockdev VFS: cannot open root device "sdc2" or unknown-block(0,0): error -6 please append a correct "root=" boot option; here are the avilable partitions: 0810 500107608 sdb driver: sd
full log click here
How to solve it, thank you

@stapelberg
Copy link
Contributor

Probably you need to set the rootdelay= kernel option to a high-enough value for your USB stick to show up. See gokrazy/gokrazy#165 for more details

@soitun
Copy link
Author

soitun commented Jun 6, 2023

thanks a lot

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

No branches or pull requests

2 participants