Problem Led support for Iconnect device

Install Arch Linux ARM on other devices.

Problem Led support for Iconnect device

Postby minscof » Sun Dec 04, 2011 10:40 am

Hi,

I have an Iomega Iconnect device, and I have installed archlinux 3.1.4-2 using the usb method described here : http://archlinuxarm.org/forum/viewtopic.php?f=27&t=1472

It works very well, but I can't manage leds because it seems they are not detected during boot. There is a patch for that :
https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux/archlinuxarm.patch included in 3.1.4-2,

but I think my board is not recognized as an Iomega Iconnect board but as a "Marvell RD-88F6281 Reference Board" (cat /proc/cpuinfo), so I think the patch is ignored.

Can someone help me to have my board recognized as an Iconnect board or explain what is wrong with my conf ?

Thanks
minscof
 
Posts: 8
Joined: Sun Dec 04, 2011 10:03 am

Re: Problem Led support for Iconnect device

Postby Fatum » Sun Dec 04, 2011 6:21 pm

Change environment variable on u-boot

$this->bbcode_second_pass_code('', 'setenv arcNumber 2870
saveenv
reset')

Leds will work ok.
Fatum
 
Posts: 3
Joined: Sun Dec 04, 2011 6:17 pm

Re: Problem Led support for Iconnect device

Postby minscof » Sun Dec 04, 2011 10:05 pm

Thank you for your answer. I dont know Uboot, but I read that fw_printenv and fw_setenv commands can be used to list and modify Uboot env variables under Linux. Can you confirm this, and can I use fw_setenv to change the arcNumber ?

Thanks for your help.
minscof
 
Posts: 8
Joined: Sun Dec 04, 2011 10:03 am

Re: Problem Led support for Iconnect device

Postby Fatum » Sun Dec 04, 2011 11:01 pm

Yes you can change it under linux using fw_setenv. But BIG warning: you can't boot original system with arcNumber 2870. You need to use arcNumber=1682.
Fatum
 
Posts: 3
Joined: Sun Dec 04, 2011 6:17 pm

Re: Problem Led support for Iconnect device

Postby igorert » Tue Dec 06, 2011 7:58 pm

I would very strongly advice against doing this unless you have a working serial connection to change it back if things don't work out. 2870 is just a number somebody (probably openWRT folks) registered for iconnect. As far as I can tell, there is no iconnect-specific code in the mainline kernel so I doubt changing the arcNumber will do you much good.

As I mentioned in the main iconnect thread, I actually have working code for controlling iconnect LEDs without changing the arcNumber. If enough people are interested in it, I'll try to clean it up and see if I can get it accepted to archlinuxarm codebase.
igorert
 
Posts: 35
Joined: Sun Jun 26, 2011 5:31 pm
Location: aka chalkbag on irc

Re: Problem Led support for Iconnect device

Postby igorert » Tue Dec 06, 2011 8:54 pm

Heh, I take it back - it looks like archlinux folks did add support for arcNumber 2870 in 3.1.1-2 even though it's not in mainline. You still won't be able to boot the stock Iomega kernel if you change the acrNumber though so do let me know if there is interest in supporting LEDs on the "stock" arcNumber.
igorert
 
Posts: 35
Joined: Sun Jun 26, 2011 5:31 pm
Location: aka chalkbag on irc

Re: Problem Led support for Iconnect device

Postby Fatum » Wed Dec 07, 2011 5:23 am

On arcNumber 2870 we have working leds and gpio-keys but serial cable recommended :)
There is some info about iconnect and arch linux at polish site : http://openrouter.info/forum/viewtopic.php?f=39&t=1232
Fatum
 
Posts: 3
Joined: Sun Dec 04, 2011 6:17 pm

Re: Problem Led support for Iconnect device

Postby minscof » Wed Dec 07, 2011 8:27 pm

Hi, thank you for all these informations. I hesitate now because I would like having led control but I have no serial connection to restore system if needed. I find very interesting to be able to come back to the original system, just taking off the USB key.

Igorert, you seem to be sure that changing the arcNumber will prevent to boot with the original Linux : can you confirm this ? is it totally incompatible ?

I m not a specialist, and I m looking for a solution to use ArchLinux on this board and have the led control : is there any other safe way to do that ?

Thank you for your help.
minscof
 
Posts: 8
Joined: Sun Dec 04, 2011 10:03 am

Re: Problem Led support for Iconnect device

Postby igorert » Wed Dec 07, 2011 8:55 pm

$this->bbcode_second_pass_quote('', 'I')gorert, you seem to be sure that changing the arcNumber will prevent to boot with the original Linux : can you confirm this ? is it totally incompatible ?


Yes, I can confirm this - you won't be able to boot into the stock kernel if you change the arcNumber. As long as you can reliably boot off Arch Linux USB (make sure cold boot works) and are running an updated Arch kernel (at least 3.1.1-2 as far as I can tell), the arcNumber change is fairly safe and you can always change the acrNumber back from Arch.

To change to the "stock" arcNumber from Arch (will boot the stock kernel and Arch but without LED support):
$this->bbcode_second_pass_code('', '
fw_setenv arcNumber 1682
')

To change to iconnect's arcNumber from Arch (won't boot stock but you get LED, temperature sensor and proper eth0 initialization in Arch):
$this->bbcode_second_pass_code('', '
fw_setenv arcNumber 2870
')

Before running the above commands I recommend first running fw_printenv as a quick sanity check - it should print a whole bunch of values if it works properly. Do not run fw_setenv if fw_printenv produces no output or prints any errors.

If something goes wrong with the latter and you can't boot from USB, you'll have a brick that requires a serial connection to restore...
igorert
 
Posts: 35
Joined: Sun Jun 26, 2011 5:31 pm
Location: aka chalkbag on irc

Re: Problem Led support for Iconnect device

Postby WarheadsSE » Wed Dec 07, 2011 10:05 pm

Does the iConnect's uboot support scripting at all? because it would not be that hard to say:
a) If USB found & labeled "rootfs", set archNumber=YYYY, boot from usb.
b) no "rootfs" found on usb, set archNumber=XXXX, boot from NAND (or whatever)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 1 guest