All times are UTC-06:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Mar 29, 2008 10:36 am 
Offline

Joined: Tue Dec 26, 2006 5:13 pm
Posts: 37
Hi,

Due to an annoyning bug in the OF, the marvell-gigabit interface is not detected correctly on first boot after powercut.
Therefore I want to have the system automatically reboot and restart, if linux detects the problem.
So I need to set some OF-variable in order to take a different path in the bootmenu ... Is this possible ?


Top
   
PostPosted: Sat Mar 29, 2008 1:23 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
Hi,

Due to an annoyning bug in the OF, the marvell-gigabit interface is not detected correctly on first boot after powercut.
Therefore I want to have the system automatically reboot and restart, if linux detects the problem.
So I need to set some OF-variable in order to take a different path in the bootmenu ... Is this possible ?
No. Linux kills off the firmware client interface so there's no transmitting data back to it UNLESS you hack it into the boot wrapper (or prom_init.c and the ilk). This will effectively allow you to reboot before Linux is really loaded.

Actually this would be the perfect place, but of course the Marvell driver is not loaded yet, if you make a mistake, the kernel may simply reboot over and over again :)

Therefore, your best bet is to find out what is different about the configuration of the Marvell ethernet and do the check - and the reboot - in a Forth script. This is far safer and doesn't rely on driver loading..

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group