Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 04:51:10 AM
News: Welcome to GLomation peer support forum
Pages: [1] 2
Topic Tools  
Read December 14, 2008, 11:48:52 AM #0
admin

Install Debian distribution to on-board FLASH

The GESBC-9260(S) has 128MB on board FLASH which is sufficent to install base Debian distribution when using JFFS2.  The following steps can be used to install the pre-packaged Debian tar file to on-board FLASH.

1) Download the pre-packaged tar file from http://www.glomationinc.com/Download/debian-arm-linux.tar.gz and store on a USB drive or SD card

2) Download the RAM disk image from http://www.glomationinc.com/Support/9260/ramdisk.gz and place it in the TFTP server directory

3) Insert the USB drive or SD card, power up the SBC and stop U-boot script by pressing any key

4) exec the following U-boot comands to boot the board with the RAM disk image.

set ipaddr <SBC-IP>
set serverip <TFTP-server-IP>
t 0x21800000 ramdisk.gz
set bootargs console=ttyS0,115200 root=/dev/ram rw initrd=0x21800000,8M rootfstype=ext2 mtdparts=at91_nand:1M(bootloader),3M(kernel),-(rootfs)
nand read 0x21000000 0x100000 0x200000; bootm 0x21000000

for kernel version 2.6.27 and up the MTD parameter should be,
mtdparts=atmel_nand:1M(bootloader),3M(kernel),-(rootfs)


5) Mount the USB drive or SD card at Linux command line
mount /dev/sda1 /mnt
or
mount /dev/mmcblk0p1 /mnt

6) Mount the root file system partion of the NAND FLASH memory
mount -t jffs2 /dev/mtdblock2 /tmp

7) Uncompress the pre-packaged Debian distribution to root partition
cd /tmp
tar zvxf /mnt/debian-arm-linux.tar.gz

8 ) umount USB drive and root partition
umount /mnt
umount /tmp

9) Reboot the board

« Last Edit: September 26, 2009, 10:10:38 AM by admin »
 
Read January 22, 2009, 11:18:39 AM #1
rstanchak

Re: Install Debian distribution to on-board FLASH

FYI for anybody installing to the flash or any other JFFS2 filesystem and wanting to use apt afterwords.
Apt dies trying to mmap the package cache, and is therefore unusable.  This is apparently due to JFFS2 not supporting a shared writeable mmap:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314334

A temporary work-around is described here:
http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/2008-November/000884.html
 
Read February 23, 2009, 07:25:47 AM #2
attitude

Re: Install Debian distribution to on-board FLASH

the url to the ramdisk image is not working...
 
Read February 23, 2009, 07:58:12 AM #3
admin

Re: Install Debian distribution to on-board FLASH

File restored
 
Read February 24, 2009, 09:55:41 AM #4
attitude

Re: Install Debian distribution to on-board FLASH

Maybe a usefull tool in the initrd image would be jfs_mkfs so that one could create a filesystem to copy the files to???
 
Read February 24, 2009, 10:55:11 AM #5
admin

Re: Install Debian distribution to on-board FLASH

The mkfs.jffs2 is available as part of the MTD utility.  You can use your desktop machine to build the JFFS2 image and burn the FLASH with the image.  Please make sure the image can fit in the SDRAM if you build one big JFFS2 image for the Debian distribution.
 
Read June 19, 2009, 08:13:07 AM #6
Klaus

Re: Install Debian distribution to on-board FLASH; Kernel2.6.27.4?

Loading according the instructions above fails after step 4).
I tried with bootargs ... mtdparts=at91_nand:.... as well as with ... mtdparts=atmel_nand: ....
System hangs after starting kernel ....

Detailed screenshot see attached file.
What is my error?

* PuttySceenshot_load_debian.txt (1.25 KB - downloaded 87 times.)
 
Read June 19, 2009, 09:02:15 AM #7
admin

Re: Install Debian distribution to on-board FLASH

The log message shows the kernel didn't even start.  Is the board running OK with the original installed file system?
 
Read June 19, 2009, 09:40:42 AM #8
Klaus

Re: Install Debian distribution to on-board FLASH

The log message shows the kernel didn't even start.  Is the board running OK with the original installed file system?

Yes, it is running with 9260rootfs.img
 
Read June 20, 2009, 07:22:57 AM #9
Klaus

Re: Install Debian distribution to on-board FLASH

The log message shows the kernel didn't even start.  Is the board running OK with the original installed file system?

Yes, it is running with 9260rootfs.img
Kernel changed to version 2.6.25. Problem remains: Kernel does not start.
Q1: I have 128MB RAM and 1024MB Flash on board. Could this lead to my problem?
Q2: What does "ramdisk.gz" include?

Thanks for any help!
 
Read June 22, 2009, 06:20:52 AM #10
admin

Re: Install Debian distribution to on-board FLASH

It doesn't seem to be a hardware problem if the factory installed kernel and FS runs fine.   You can try load the RAM disk at higher memory location or load the kernel to a lower memory location.  The RAM disk is used as an intermediate stage just to be able to copy the file system to the on-board FLASH.  You can also try boot with FS on USB or SD card to load the FS to FLASH.
 
Read September 14, 2009, 07:33:33 AM #11
pepe

Re: Install Debian distribution to on-board FLASH

I´ve got a problem on step 6), mount command send me this error message:

~ # mount -t jffs2 /dev/mtdblock2 /tmp
mount: Mounting /dev/mtdblock2 on /tmp failed: No such device

SD card is correctly mounted because i can see the tar.gz file on /mnt
can help me?
thaks a lot
 
Read September 14, 2009, 09:23:48 AM #12
admin

Re: Install Debian distribution to on-board FLASH

Did yopu have the correct MTD setting? For kernel version 2.6.27 and up the MTD partition parameter should be,

mtdparts=atmel_nand:1M(bootloader),3M(kernel),-(rootfs)
 
Read September 15, 2009, 06:28:13 AM #13
pepe

Re: Install Debian distribution to on-board FLASH

Ok, you are right. I should have seen it.
Thanks
 
Read September 25, 2009, 08:41:08 AM #14
faumarz

Re: Install Debian distribution to on-board FLASH

I followed the instructions for installing Debian distribution to on-board FLASH (GESBC-9260S), and I found the following problems:
The pre-packaged tar file link for debian is not working
I supposed that the correct pre-packaged tar file was http://www.glomationinc.com/download/debian-etch-arm-base.tar.gz so I downloaded it.
After booting the ramdisk I mounted an USB drive and uncompressed the pre-packaged Debian distribution to root partition. The uncompression ended with an error message after a while:
# tar: Invalid tar magic

After that, rebooting the system starts the kernel but hangs at the login point (previously there are a lot of error messages for missing files). Maybe the correct pre-packaged tar file is another one?
I re-flashed the board with factory defaults and now it's working again.

I tried to uncompress locally in a directory of my PC (linux installed) the debian-etch-arm-base.tar.gz but I get errors also in this way. I downloaded it again (supposing a previous broken-download) but the errors do not change.

Do you have any suggestions?

Thank you
 
Pages: [1] 2
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re