Just starting out. I am looking for a way to have a timeout to load openwrt. Currently on boot of the x86 PC I must hit enter to select openwrt and not failsafe. This means I must hit enter on openwrt machine everytime it reboots or it doesn't boot. How do I fix this, please help.
This isn't really an OpenWrt related issue since Grub is actually the boot loader. But this should hopefully help:
https://help.ubuntu.com/community/Grub2/Setup
Thx for the quick reply! I don't have a working knowledge of Linux. I was hoping there was a way to modify on the PC running openwrt.. this is the only image on this computer and I can't figure out how to modify.. unless I install Linux on it as well? A power fail or changing settings means it's offline till I attach a keyboard and hit enter in the basement...makes it not practical.
You can do it from within Openwrt.
Check if the issues related the your hw not having a serial port: After flashing fresh to IQRouter (x86), it never loads: no SSH, no 192.168.1.1 - #24 by ikjadoon.
If you don't want to edit the file via the console, use winscp.
SSH into OpenWrt or alternatively connect a monitor to your x86 router (if possible)
Run the following commands:
opkg update
opkg install nano
nano /boot/grub/grub.cfg
Then in grub.cfg follow the guide @psherman has provided. If you still struggle, just paste the contents of grub.cfg here.
Alternatively, if you can't SSH into the router, boot from a live linux distro, once it loads, navigate to /boot/grub/grub.cfg (for the router filesystem, not the live distro!), then edit the file there.
In addition to the excellent advice already given, it should be mentioned that this is actually the default behaviour of GRUB on x86 OpenWrt, and it's curious that it isn't for you. I have personally witnessed OpenWrt x86 installs that fail to boot at all unless manually confirmed, but I have not seen one that automatically bumps into failsafe instead of the system proper.
I think we could stand to benefit from a little more detail: Which OpenWrt version and x86 flavour did you install, on what, how did you install it, and what does the GRUB screen actually look like when you look at it (on a screen, or via console redirection)?
Thx for everyone's help. It was the serial driver load in the grub file. I tried all suggestions and the only thing that worked for me was loading the openwrt PC with Ubuntu live and then editing grub CFG.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.