Linux distro on NSA325

Install Arch Linux ARM on other devices.

Re: Linux distro on NSA325

Postby musv » Mon Sep 16, 2013 7:32 pm

WarheadSE:

It seems, you have the full build environment installed. Can you please provide me a uImage with the that patch applied:

$this->bbcode_second_pass_code('', '#if defined(CONFIG_ZYXEL_NSA325)
/* MCU tries to reset CPU every 1 minute for avoiding system hang before watchdog timer is enabled.
* If watchdog timer is enabled, then set GPIO 14 to tell MCU that do not reset CPU.
*/
regValue = MV_REG_READ(0x1010);
regValue |= BIT14;
MV_REG_WRITE(0x10100, regValue);
#endif')

So I could at least do some first steps to play around and start learning on my Zyxel.
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Linux distro on NSA325

Postby prokrypt » Mon Sep 16, 2013 8:31 pm

Erm, I don't think it's that simple... Both WarheadsSE and I have tried twiddling bits in those registers with the same result: device still reboots.

edit: BUT I might have missed (or forgotten) something: it reads from 0x1010 but writes to 0x10100.
does 0x1010 == 0x10100 ?

edit #2: I think I remember now. 0x1010 is read only and 0x10100 is write only. Maybe.

edit #3: I have tried flipping GPIO14 after a cold boot into Archlinux before. Device still rebooted.
Last edited by prokrypt on Tue Sep 17, 2013 5:08 am, edited 2 times in total.
prokrypt
 
Posts: 31
Joined: Thu Dec 27, 2012 4:45 am

Re: Linux distro on NSA325

Postby WarheadsSE » Mon Sep 16, 2013 8:45 pm

I have done as necessary for both, in u-boot via memory modify (smacking the registers directly by address), and neither work there. I plan on bringing this into the kernel. This damned MCU is annoying..

It (the 325) is my next project, since someone was kind enough to donate a device specifically for me to bring up. :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby WarheadsSE » Tue Sep 17, 2013 2:19 am

It's on my desk/bench at the moment.

Looking into getting a kernel patch together. Have to tear up their sources :P
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby musv » Thu Sep 19, 2013 6:44 pm

I'm currently installing a new kernel on my Gentoo machine and found this new option in the kernel config:

$this->bbcode_second_pass_quote('', 'R')eset Controller Support (RESET_CONTROLLER)

CONFIG_RESET_CONTROLLER:

Generic Reset Controller support.

This framework is designed to abstract reset handling of devices
via GPIOs or SoC-internal reset controller modules.

If unsure, say no.

Symbol: RESET_CONTROLLER [=n]
Type : boolean
Prompt: Reset Controller Support
Location:
-> Device Drivers
Defined at drivers/reset/Kconfig:4


Could it be something we are looking for?
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Linux distro on NSA325

Postby prokrypt » Fri Sep 20, 2013 12:23 am

http://lists.infradead.org/pipermail/li ... 51680.html

Doesn't really look like anything useful... but then again, all of that stuff looks like gibberish to me :D
prokrypt
 
Posts: 31
Joined: Thu Dec 27, 2012 4:45 am

Re: Linux distro on NSA325

Postby WarheadsSE » Fri Sep 20, 2013 4:01 am

I have a feeling that uboot is protecting it some how, our the Ethernet linked mcu is in play.

Either way I test the kernel I've made tomorrow
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby WarheadsSE » Sat Sep 21, 2013 12:17 pm

https://github.com/archlinuxarm/PKGBUIL ... 5eefbcdff6

Install instructions to come after testing :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby prokrypt » Sat Sep 21, 2013 5:47 pm

Does that mean it worked? :o
prokrypt
 
Posts: 31
Joined: Thu Dec 27, 2012 4:45 am

Re: Linux distro on NSA325

Postby SomeoneOnLine » Sat Sep 21, 2013 5:49 pm

I'm sure he will give more details after he has tested.

~SOL
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: Google [Bot] and 20 guests