Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Thu Jun 21, 2018 3:49 pm

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Can't Enter EM
PostPosted: Sun Oct 07, 2007 8:59 pm 
Offline

Joined: Thu Feb 01, 2007 3:02 pm
Posts: 15
I am currently running Debian and my Kurobox; however, I want to start a fresh install to trim away some of the fat I've accumulated. When I try to run "echo "NGNG" > /dev/fl3" I get an error that no device exists. I know I'm using fl3 and not f13 as f13 won't generate an error and creates a file in /dev.

I've done the NGNG trick before without issue so I have no idea why it's not working now.


Top
   
 Post subject:
PostPosted: Sun Oct 07, 2007 10:43 pm 
Offline

Joined: Sat Jul 15, 2006 8:49 am
Posts: 219
Location: Virginia
I think you might see that if you are running a 2.6 kernel. The 2.6 kernels use the /dev/mtd devices for the flash, not the /dev/fl devices. And you have to make sure you know which mtd device to use before you do the echo command, otherwise you could make a brick. There are two layouts of the mtd devices depending on which version of the 2.6 kernel you have. You can see your layout with the command:
Code:
# cat /proc/mtd


Check out the Flash ROM page.

russK


Top
   
 Post subject:
PostPosted: Mon Oct 08, 2007 6:16 am 
Offline

Joined: Thu Feb 01, 2007 3:02 pm
Posts: 15
Thanks for the quick reply. It looks I have a Patched 2.6.x Kernel v1 because I'm seeing:

$ cat /proc/mtd
dev: size erasesize name
mtd0: 00300000 00010000 "mtd_firmimg"
mtd1: 00070000 00010000 "mtd_bootcode"
mtd2: 00010000 00010000 "mtd_status"
mtd3: 00080000 00010000 "mtd_conf"
mtd4: 00400000 00010000 "mtd_allflash"

I'm not seeing the:
mtd5: 000f0000 00010000 "mtd_data" that is also listed on the flash ROM page you sent me.

It does look like a echo "NGNGNG" > /dev/mtdblock2 should do it. I dumped /dev/mtdblock2 and got a bunch of OKs followed by a little bit of garage at the end. Does think look correct?


Top
   
 Post subject:
PostPosted: Mon Oct 08, 2007 7:14 am 
Offline
Site Admin

Joined: Fri Oct 29, 2004 10:08 am
Posts: 177
Location: MA
No Use /dev/mtdchar2
echo -n NGNG > /dev/mtdchar2
You have the correct parition number but you always want too echo to char devices the block devies are what a filesystem would use. Basically the difference is the block device wil;l buffer the reads and writes and you do not want that.

_________________
Hint of the day: See pages added to the wiki via RSS: http://www.kurobox.com/mwiki/index.php? ... s&feed=rss

Thanks
Brian


Top
   
 Post subject:
PostPosted: Mon Oct 08, 2007 10:04 pm 
Offline

Joined: Thu Feb 01, 2007 3:02 pm
Posts: 15
I just wanted to post a follow up and thank you both for the help. My build only had mtd and mtdblock devices so I wasn't able to use the mtdchars. I wasn't sure if the straight mtd devices were safe to use so I tested with mtdblock2 and it worked perfectly. I think the main problem was that I'm using a 2.6 kernel but I never did the uBoot flash.

After a little playing with the fstab and network configuration my Kuro is now back up and running with a nicely stripped down build.

It was fun playing with the Kuro but now I just need it as a rock solid NAS which I know will have no problems. My new VIA C7 EDEN mini-itx board is giving me a little more room to play with though. I hope to do a write up that I'll post a link to the general talk board if anyone is interested. I only wish the Kuro Pro was a little more of an upgrade, but now I have an x86 @1.2Ghz with 1GB of RAM so I have a little more power to play with.


Top
   
 Post subject:
PostPosted: Tue Oct 09, 2007 1:16 pm 
Offline
Site Admin

Joined: Fri Oct 29, 2004 10:08 am
Posts: 177
Location: MA
Sorry my bad .I should have said mtd. I've been playing with some non-standard embedded systes that call it mtdchar.

_________________
Hint of the day: See pages added to the wiki via RSS: http://www.kurobox.com/mwiki/index.php? ... s&feed=rss



Thanks

Brian


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 2 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
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited