LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-24-2009, 09:15 AM   #1
sreekanth.karan
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Lightbulb Erasing blocks of memory in flash


Iam trying to make OMAP5912-osk as standalone by porting U-boot as bootloader and linux2.6.24 as kernel.Iam mounting JFFS2 as filesystem.
I have no problem in porting U-boot and kernel on the flash of the board.

I have done the steps as
for U-boot
#tftpboot 0x10000000 u-boot.bin
#erase 1:0
#cp.b 0x10000000 0x00 xxxxxx

for Kernel
#tftpboot 0x10000000 uImage.cc
#erase 1:8-16
#cp.b 0x10000000 0x100000 xxxxxx

where u-boot.bin and uImage.cc are the images of bootloader and kernel respectively. xxxxxxx is the size.

I used MTD for compatibility between JFFS2 and the board.

when I was trying to erase the flash for mounting JFFS2, it is giving an error like "bad sector specification"

erase 1:128-255

Please give me any solution for this....
 
Old 08-26-2009, 01:37 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Are you able to erase the full range? eg 'erase 1:17-258'

Have you tried erasing just part of the range? eg 'erase 1:17-23'

Have you tried specifying address ranges instead of sectors? eg 'erase 0x1000000 0x1ffffff'

What does 'flinfo' report? Is it possible that write protection has been turned on?

Last edited by neonsignal; 08-26-2009 at 01:41 AM.
 
Old 01-25-2010, 04:00 AM   #3
leemgs
LQ Newbie
 
Registered: Sep 2004
Location: korea
Distribution: yes
Posts: 2

Rep: Reputation: 0
This reason is happended according to different u-boot version.
In my case, I used different method per each u-boot version as belows.
If you use u-boot ver 1.1.6, Please type "erase 0x1000000 0x1ffffff" command.
and, If you use u-boot ver 1.1.1, Please type "erase 1:128-255" command.
Good Lucks.
This is my test information: arm-gcc 4.2.0 , linux 2.6.29.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i can not access my flash memory after installing ubuntu from flash eramax Ubuntu 2 10-27-2008 11:11 AM
Reading specific memory blocks with C++ genderbender Programming 4 12-23-2007 05:24 PM
Flash memory as Video memory in Ubuntu? caa1980 Ubuntu 6 10-25-2007 11:55 AM
USB memory, Compact Flash, Memory Stick energiza Linux - Hardware 2 08-22-2006 09:29 PM
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration