My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Emdebian  
Bootstrap Lenny for your ARM board.
emdebian, mini2440, s3c2440, armel, armv4t
Updated Jan 12, 2012 by buser...@gmail.com

Introduction

This document explaind how to bootstrap yourself a nice armel emdebian "grip" install for your ARM board.

Details

debootstrap phase 1

Create a debootstrap with emdebian base minimum system

 [michel@yap /opt/debian-armel]% *sudo debootstrap --arch=armel --foreign lenny grip/ http://www.emdebian.org/grip/ * 

The resulting directory contains just whats needed to boot and populate a snall debian.

 [michel@yap /opt/debian-armel]% *ll grip* 

total 64 drwxr-xr-x 2 root root 4096 Apr 29 2008 bin drwxr-xr-x 2 root root 4096 Dec 4 09:23 boot drwxr-xr-x 2 root root 4096 Mar 6 13:12 debootstrap drwxr-xr-x 2 root root 4096 Nov 8 07:43 dev drwxr-xr-x 30 root root 4096 Mar 6 13:12 etc drwxr-xr-x 2 root root 4096 Dec 4 09:23 home drwxr-xr-x 10 root root 4096 Apr 29 2008 lib drwxr-xr-x 2 root root 4096 Dec 4 09:23 mnt drwxr-xr-x 2 root root 4096 Dec 4 09:23 proc drwxr-xr-x 2 root root 4096 Dec 4 09:23 root drwxr-xr-x 2 root root 4096 Apr 29 2008 sbin drwxr-xr-x 2 root root 4096 Sep 16 08:48 selinux drwxr-xr-x 2 root root 4096 Aug 12 2008 sys drwxrwxrwt 2 root root 4096 Dec 4 09:23 tmp drwxr-xr-x 9 root root 4096 Apr 6 2008 usr drwxr-xr-x 11 root root 4096 Aug 12 2008 var

Create a compressed file with the content of this directory, so you can use it again.

 [michel@yap /opt/debian-armel]% *(cd grip ;  tar jcf ../emdebian-grip-090306-armel-debootstrap-lenny.tar.bz2 .)* 

[michel@yap /opt/debian-armel]% *ll -h*

total 35M drwxr-xr-x 18 root root 4.0K Apr 6 2008 grip -rw-r--r-- 1 michel michel 34M Mar 6 13:13 emdebian-grip-090306-armel-debootstrap-lenny.tar.bz2

SD Card Preparation

Insert your SD card in the host. You can detect what device name it is mapped on by doing :

 [michel@yap /opt/debian-armel]% *dmesg|tail -20* 

... [ 5876.556251] sd 6:0:0:0: [sdd] 1939456 512-byte hardware sectors: (993 MB/947 MiB) [ 5876.557248] sd 6:0:0:0: [sdd] Write Protect is off [ 5876.557250] sd 6:0:0:0: [sdd] Mode Sense: 03 00 00 00 [ 5876.557251] sd 6:0:0:0: [sdd] Assuming drive cache: write through [ 5876.557253] *sdd*: sdd1 sdd2 sdd3

So we know it's sdd here, so lets partition the card again the way we want it.

Partition SD card

First partition of 50MB will be /boot, vfat, and the rest is /, ext3. Here is the complete session in fdisk:

 [michel@yap /opt/debian-armel]% *sudo fdisk /dev/sdd* 

Command (m for help): *o*

Building a new DOS disklabel with disk identifier 0x3e53813f. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): *p*

Disk /dev/sdd: 993 MB, 993001472 bytes 31 heads, 62 sectors/track, 1009 cylinders Units = cylinders of 1922 ** 512 = 984064 bytes Disk identifier: 0x3e53813f

Device Boot Start End Blocks Id System

Command (m for help): *n*

Command action e extended p primary partition (1-4) *p*

Partition number (1-4): *1*

First cylinder (1-1009, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-1009, default 1009): *+50MB*

Command (m for help): *n*

Command action e extended p primary partition (1-4) *p*

Partition number (1-4): *2*

First cylinder (53-1009, default 53): Using default value 53 Last cylinder, +cylinders or +size{K,M,G} (53-1009, default 1009): Using default value 1009

Command (m for help): *p*

Disk /dev/sdd: 993 MB, 993001472 bytes 31 heads, 62 sectors/track, 1009 cylinders Units = cylinders of 1922 ** 512 = 984064 bytes Disk identifier: 0x3e53813f

Device Boot Start End Blocks Id System /dev/sdd1 1 52 49941 83 Linux /dev/sdd2 53 1009 919677 83 Linux

Command (m for help): *t*

Partition number (1-4): *1*

Hex code (type L to list codes): *L*

0 Empty 1e Hidden W95 FAT1 80 Old Minix bf Solaris 1 FAT12 24 NEC DOS 81 Minix / old Lin c1 DRDOS/sec (FAT- 2 XENIX root 39 Plan 9 82 Linux swap / So c4 DRDOS/sec (FAT- 3 XENIX usr 3c PartitionMagic 83 Linux c6 DRDOS/sec (FAT- 4 FAT16 <32M 40 Venix 80286 84 OS/2 hidden C: c7 Syrinx 5 Extended 41 PPC PReP Boot 85 Linux extended da Non-FS data 6 FAT16 42 SFS 86 NTFS volume set db CP/M / CTOS / . 7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set de Dell Utility 8 AIX 4e QNX4.x 2nd part 88 Linux plaintext df 'BootIt' 9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e3 DOS R/O * b W95 FAT32* 51 OnTrack DM6 Aux 94 Amoeba BBT e4 'SpeedStor' c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS eb BeOS fs e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee GPT f W95 Ext'd (LBA) 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/ 10 OPUS 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b 11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f1 'SpeedStor' 12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f4 'SpeedStor' 14 Hidden FAT16 <3 61 SpeedStor a9 NetBSD f2 DOS secondary 16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot fb VMware VMFS 17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE 18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto 1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep 1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT Hex code (type L to list codes): *b*

Changed system type of partition 1 to b (W95 FAT32)

Command (m for help): *p*

Disk /dev/sdd: 993 MB, 993001472 bytes 31 heads, 62 sectors/track, 1009 cylinders Units = cylinders of 1922 ** 512 = 984064 bytes Disk identifier: 0x3e53813f

Device Boot Start End Blocks Id System /dev/sdd1 1 52 49941 b W95 FAT32 /dev/sdd2 53 1009 919677 83 Linux

Command (m for help): *w*

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks.

Create new filesystems

Now, lets create file systems on these 2 new partitions, one vfat, one ext3

 [michel@yap /opt/debian-armel]% *sudo mkfs.vfat /dev/sdd1* 

mkfs.vfat 2.11 (12 Mar 2005) [michel@yap /opt/debian-armel]% *sudo mkfs.ext3 /dev/sdd2*

mke2fs 1.41.3 (12-Oct-2008) warning: 543 blocks unused.

Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 57568 inodes, 229376 blocks 11495 blocks (5.01%) reserved for the super user First data block=0 Maximum filesystem blocks=234881024 7 block groups 32768 blocks per group, 32768 fragments per group 8224 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840

Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

Mount new partitions

 [michel@yap /opt/debian-armel]% sudo mount /dev/sdd2 /mnt/arm
 [michel@yap /opt/debian-armel]% sudo mkdir -p /mnt/arm/boot
 [michel@yap /opt/debian-armel]% sudo mount /dev/sdd1 /mnt/arm/boot
 

Install debootstrap

This will uncompress the archive into the new ext3 partition on the SD card

 [michel@yap /opt/debian-armel]% (cd /mnt/arm;sudo tar jxf /opt/debian-armel/emdebian-grip-090306-armel-debootstrap-lenny.tar.bz2 ; sync )
 
Some space has been taken by the bootstrap. The real amount is irrelevan, as most of it is unninstalled package files.
 [michel@yap /opt/debian-armel]% df -h
 Filesystem            Size  Used Avail Use% Mounted on
 ...
 /dev/sdd2             882M  98M  724M  18% /mnt/arm
 /dev/sdd1              49M     0   49M   0% /mnt/arm/boot
 

Kernel and Modules install

If you have a source directory with your compiled kernel, you can already install your modules in their proper space with :

 [michel@yap /usr/src/linus-2.6]% *sudo make INSTALL_MOD_PATH=/mnt/arm modules_install* 

... INSTALL sound/usb/caiaq/snd-usb-caiaq.ko INSTALL sound/usb/snd-usb-audio.ko INSTALL sound/usb/snd-usb-lib.ko DEPMOD 2.6.29-rc7 [michel@yap /usr/src/linus-2.6]% *ll /mnt/arm/lib/modules*

total 4 drwxr-xr-x 3 root root 4096 Mar 6 12:20 2.6.29-rc7 2.6.29-rc7

Finishing the preparation

The file system needs to be tweaked a bit to boot properly, so we do that with a root shell into the target directory. Be VERY careful not to use any leafing / in your paths!!

 [michel@yap /usr/src/linus-2.6]% *su -* 

root@yap:~# *cd /mnt/arm*

root@yap:/mnt/arm# *cp /tftpboot/uImage boot/*

root@yap:/mnt/arm# *echo "proc /proc proc none 0 0" >>etc/fstab*

root@yap:/mnt/arm# *echo "mini2440" >etc/hostname*

root@yap:/mnt/arm# *mknod dev/console c 5 1*

root@yap:/mnt/arm# *mknod dev/ttySAC0 c 204 64*

root@yap:/mnt/arm# *echo 'deb http://www.emdebian.org/grip/ lenny main' >>etc/apt/sources.list*

Unmount the file SD card

 root@yap:/mnt/arm# cd ..
 root@yap:/mnt/arm# umount arm/boot arm
 

U-boot time!

You can either do these steps in qemu, or using your own board. The process is the same, you need to configure the system to boot from your SD card: Set environment variables properly for booting on the memory card:

 MINI2440 # *setenv bootargs console=ttySAC0,115200 noinitrd root=/dev/mtcblk0p2 rootwait=4 rw ip=dhcp init=/bin/sh* 

MINI2440 # *tftp;bootm*

Eventualy, you should arrive at a naked shell prompt.

Second Stage Install

Do this to finish the debian install. It will take a rather long time, so be patient !

 sh-3.2# *mount /proc /proc -t proc* 

sh-3.2# *export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin*

sh-3.2# */debootstrap/debootstrap --second-stage*

...

Wait (a long time) -- udev might give you some warnings due to bad blocks on the NAND, in which case you might have to force-reinstall it when it's done :

 dpkg -i /var/cache/apt/archives/udev_0.125-7em1_armel.deb
 

Finishing touches!

Once that is done, add a bit of niceties to the install:

 root@yap:/mnt/arm# *echo ttySAC0 >>etc/securetty* 

root@yap:/mnt/arm# *printf "T0:123:respawn:/sbin/getty 115200 ttySAC0\n" >>etc/inittab*

root@yap:/mnt/arm# *printf "auto eth0\niface eth0 inet dhcp\n" >>etc/network/interfaces*

Reboot, you're done !

Comment by project member buser...@gmail.com, Mar 7, 2009

Of note, the start-stop-daemon is installed as a 'fake' one, probably to make sure that the daemon do not launch themselves during the second stage install. To make it work do: <pre># *cd /sbin*

# *mv start-stop-daemon start-stop-daemon.FAKE && mv start-stop-daemon.REAL start-stop-daemon* </pre>

Comment by rosjuanjose@gmail.com, Mar 30, 2009

What is the command "ll", is ls -al?

Comment by noah.fri...@gmail.com, Apr 23, 2009

Regarding the mini2440-bootstrap-v2.sh script, I had to change

   ... -d kernel/mini2440/arch/arm/boot/zImage output/uImage

to

   ... -d kernel-bin/arch/arm/boot/zImage output/uImage
Comment by kos...@gmail.com, Jun 5, 2009

U-boot command is wrong. Instead of root=/dev/mtcblk0p2 it should be root=/dev/mmcblk0p2

Comment by kos...@gmail.com, Jun 5, 2009

In order to boot from SD card, the u-boot should initialize MMC and load uImage from device 0, partition 1. Below is example of boot command:


setenv bootcmd 'mmcinit;fatload mmc 0:1 ${load_addr} uImage; setenv bootargs ${bootargs} noinitrd root=/dev/mmcblk0p2 rw ip=dhcp; bootm ${load_addr}'

After udev installation /etc/inittab in root FS should be fixed. Instead of


T0:123:respawn:/sbin/getty 115200 ttySAC0
it should include
T0:2345:respawn:/sbin/getty -L s3c2410_serial0 115200 vt100
Also the /etc/securetty should list s3c2410_serial0 device instead of ttySAC0. Otherwise the root login will be impossible

Comment by jdgern...@gmail.com, Jun 5, 2009
I tried this:

setenv bootcmd 'mmcinit;fatload mmc 0:1 ${load_addr} uImage; setenv bootargs ${bootargs} noinitrd root=/dev/mmcblk0p2 rw ip=dhcp; bootm ${load_addr}'

and it was better, at least it found and uncompressed linux this time but it hung on booting the kernel....

Comment by pde...@gmail.com, Jun 11, 2009

hi, I'm trying to use the camera with emdebian. I tried to load the modules soc_camera.ko and soc_camera_platform.ko, but nothing happens.

Comment by kapitali...@gmail.com, Jun 12, 2009

@ jdgernest,

what exactly did u put at load_addr and $bootargs and what is the full boot command in uboot?

I have never used uboot and despite the fact I have a full blown dbootstrapp installation on my SD card, I can't make the board boot properly.

TIA.

Comment by pde...@gmail.com, Jun 12, 2009

@ jdgernest I have the same problem whe I try to load the kernel provided on friendlyarm.net. The kernel in the git repo instead works well

Comment by mini2440...@gmail.com, Jun 13, 2009

@ pdesse

it seems that the board wouldn't accept SDHCs. However, the boot process hangs after the kernel gets uncompressed. Do you know what the problem is?

Comment by pde...@gmail.com, Jun 14, 2009

Which kernel are u using?

Comment by mini2440...@gmail.com, Jun 14, 2009

@ pdesse

A real-time patched 2.6.29 kernel

Comment by pde...@gmail.com, Jun 14, 2009

You should use the kernel in the git repo

Comment by Mankin...@gmail.com, Aug 25, 2009

I managed to install emdebian and tslib. Now I have two problems: the first one consists of the screen turning itself of after x minutes, second can´t seem to find the right place to put my environment variables, profile doesn´t seem to do the trick.

Comment by Mankin...@gmail.com, Aug 25, 2009

Solved my environment variables problem by using the init=/sbin/init, but the backlight control is still a mystery.

Comment by gent...@gmail.com, Sep 18, 2009

I have a mini2440, I can compile the kernel from source and I can load the prepackaged rootfs that I grabbed from somewhere that is an Angstrom build from Watterott. What I want to do now is build a rootfs from scratch that once it boots, it will run a Qt app I wrote.. I need touchscreen functionality but I don't need the whole desktop, just a blank canvas..

My question, which is the best way to go, a straight up OE release, Angstrom or embedian. I need SD support, and possibly networking, but having a device that boots quickly is important.. Right now the Angstrom build takes a min or 2 to boot..

Thank you John Gentilin

Comment by rate...@gmail.com, Oct 14, 2009

Ok at all.. i get everything running or almost.. i saw last day xfce4 in repos and decided to try... just another maze ahead. I get this error from X: FBIOPUT_VSCREENINFO succeeded but modified mode --> then it dies in shell

Anybody succeded there? Would be nice to try graphical capabilities and i'm on a dead end road cuase i can't gather more infos about this problem..

Help!

Comment by rate...@gmail.com, Oct 14, 2009

incredible how desperation works faster than me.. dist-upgraded to testing and now i have xorg rambling.. xfce4 work but needs some swap (how can i center the display as mine is a little overscanning right way???)

Comment by rate...@gmail.com, Oct 15, 2009

Anyone has idea for screen centering under framebuffer?? Please help!

Comment by pmatteu...@gmail.com, Oct 18, 2009

hey guys! I compiled the kernet from git and converted it to uImage as per http://wiki.linuxmce.org/index.php/Mini2440

I follow all this and it works fine, the SD is partitioned and the modules & debootstrap. When I boot to mini2440 I get a "Wrong Image Format for bootm command" error.

bootcmd=setenv bootcmd 'mmcinit;fatload mmc 0:1 ${load_addr} uImage; setenv bootargs ${bootargs} noinitrd root=/dev/mmcblk0p2 rw ip=dhcp; bootm {load_addr}'

Also I don't get the tftp in this tutorial, when I run it it says that Warning: no boot file name; using '95AB58FD.img' And can't find it since my tftp only has uImage and u-boot.bin installed

Can anyone help me? Thanks very much Pajolo

Comment by kadiri...@gmail.com, Oct 20, 2009

While starting to boot mini2440 board

MINI2440# setenv load_addr 0x32000000 must be writen.Because load_addr variable is not definition.then MINI2440# saveenv later MINI2440# bootcmd=setenv bootcmd 'mmcinit;ext2load mmc 1:2 ${load_addr} uImage; setenv bootargs ${bootargs} noinitrd root=/dev/mmcblk0p2 rw ip=dhcp; bootm ${load_addr}'

Dont remember dollar sign '$' before {load_addr}...... I did and worked......

Comment by pmatteu...@gmail.com, Oct 22, 2009

ok I got everything working. As far as I can tell the last tftp is a type and should be nboot.e kernel; bootm

Comment by raffaele...@gmail.com, Nov 20, 2009

Found how to fix the framebuffer centering in this post: http://www.friendlyarm.net/forum/topic/107?lang=en

Comment by alvaro.c...@gmail.com, Jan 6, 2010

I can not boot properly the mini2440 im using this commands

setenv bootargs console=ttySAC0,115200 noinitrd root=/dev/mtcblk0p2 rootwait=4 rw ip=dhcp init=/bin/sh

setenv bootargs console=ttySAC0,115200 noinitrd root=/dev/mmcblk0p2 rootwait=4 rw ip=dhcp init=/bin/sh

I have the sd loaded with mmcinit and the kernel image loaded with fatload mmc 0:1 0x32000000 uImage

but always shows the message

TCP cubic registered NET: Registered protocol family 17 s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "mmcblk0p2" or unknown-block(2,0) Please append a correct "root=" boot option; here are the available partitions: 1f00 256 mtdblock0 (driver?) 1f01 128 mtdblock1 (driver?) 1f02 5120 mtdblock2 (driver?) 1f03 125568 mtdblock3 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

If i mount the sd card on linux i can see partition 2 has the root fs

Pls help!!!

Comment by hako.ko...@gmail.com, Jan 10, 2010

hello alvaro.colunga

try to use a ext3 format....

Comment by pmatteu...@gmail.com, Jan 10, 2010

Alvaro,

you're SD card device is not being read.

If it were, it would appear in the list of available partitions as mmcblk0 Are you sure you've partitioned it with ext2 and not fat?

I've never tried using fat for this, but not sure if it would work.

Try using a jffs2 image like this:

copy the jffs2 file to the sd card and rename it something easy like fs.jffs2

Open u-boot

mmcinit

ext2load mmc 1:1 0x31000000 fs.jffs2

nand write 0x31000000 root ${filesize}

setenv bootargs 'noinitrd root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttySAC0,115200 mini2440=3tb'

saveenv

try resetting and see if it works.

Cheers

Comment by pmatteu...@gmail.com, Jan 10, 2010

On a different not, for the past several weeks I have been running gpe-image with no errors but I get no GUI, just a black screen.

I think this may be related to a change in kernels, but not sure.

I am running 2.6.32 with gpe-image, is anyone having this same problem?

I'm also running the correct timing on the screen with mini2440=0tb

PLEASE HELP!!!

Cheers & thx

Paul

Comment by alvaro.c...@gmail.com, Jan 14, 2010

pmatteucci

Thanks, i could overwrite the root partition with a custom image, but i want to boot emdebian saved on my sd card.

Why the mini2440 is not reading the sd card i put the command mmcinit on the bootcmd, and i'm following every step of this guide.

Unless i'm missing something, this guide says i should create two partitions, shuld i just create a single ext3 partition and make the bootstrap on it?

Alvaro

Comment by bee...@gmail.com, Feb 17, 2010

Thanks for your work. I follow the step by step, but get a problem in the step of "Finishing the preparation" cp /tftpboot/uImage boot/ i do not have /tftpboot/uImage to copy, where can i download it? Thanks for help.

Comment by markit...@gmail.com, Feb 19, 2010

Hello,

I also have had some problems with the first boot of the mini2440 and the bootargs of the u-boot. What finally worked for me is the following:

1- When you are at the u-boot prompt, first charge your compiled kernel to the RAM: MINI2440 # tftp 0x32000000 uImage

If you don't know how tftp works you can find a nice discussion here: http://www.friendlyarm.net/forum/topic/61?lang=en

2- Set the bootargs, this is what worked for me: MINI2440 # setenv bootargs console=ttySAC0,115200 noinitrd root=/dev/mmcblk0p2 rw ip=dhcp init=/bin/sh (the oprion rootwait=4 gave me an error...)

3- reboot: MINI2440 # bootm

Comment by kadiri...@gmail.com, Feb 22, 2010

Hi everybody Now I run emdebian on mini2440 board but Emdebian just have console and it is running such as console software. Mini2440 have a Tft color Lcd and desired Lcd size support. I want that want to run an visual operating system such as Debian Lenny 5. for embedded systems at the following sites have been described Debian compilation. Also on beagleboard running debian lenny.

"http://www.jasonjpoon.com/projects.html"

"" ""

How can we install on Mini2440. Do you think that about....

Comment by andrewt1...@gmail.com, Apr 12, 2010

hi and just a beginner and i need to make this instalation on mini2440,

im in ubuntu 9.10 i wrote this line:

/opt/debian-armel% sudo debootstrap --arch=armel --foreign lenny grip/ http://www.emdebian.org/grip/

but appearsme this problem: bash: /opt/debian-armel% no existe el fichero o el directio

i make de folder but then: bash: /opt/debian-armel% : es un directorio.

do i need to install debian on my pc to make this?? help me please!!

Comment by roman.ho...@gmail.com, Apr 14, 2010

first you got to type sudo mkdir /opt/debian-armel then type the following line without "/opt/debian-armel%" sudo debootstrap --arch=armel --foreign lenny grip/ http://www.emdebian.org/grip/

btw.. has someone any instructions for installing and configure gpe in emdebian?

Comment by andrewt1...@gmail.com, Apr 20, 2010

hi now im having some troubles in:Installing debootstrap

when i execute:

root@felipe-desktop:/mnt/arm# tar jxf /home/felipe/emdebian-grip-090306-armel-debootstrap-lenny.tar.bz2

i did it in /home/felipe/ because its in this folder where i have the emdebian-grip

this messeage apears tar: ./boot: No se puede cambiar el propietario a uid 0, gid 0: Operación no permitida tar: Saliendo con fallos debido a errores anteriores

i did it as a route but it happens the same, can anybody help? is it a normal mistake?

Comment by nandakum...@gmail.com, May 30, 2010

Hi guys, Even I face the same problem as alvaro.colunga while trying to boot from SD card(Cannot open root device "mmcblk0p2" or unknown-block(2,0) Please append a correct "root=" boot option;). Any help wud be greatly appreciated... Thanks in advance, Nandy

Comment by casat...@gmail.com, Aug 18, 2010

I've followed all the steps that you mention here with the small difference of using squeeze as the base debian distro. Then just when I start the second-stage there are quite a few broken dependencies that need to be solved manually one by one basis.

But there's one that doesn't seem to be possible to solve: libc6 it complains when setting it up that /dev/initctl doesn't exists, so 'mknod -m 0400 /dev/initctl p' creates it but there's nobody listening to that... so it seems that I'm stuck. Is the system ready at this stage to run /sbin/init ? how can I solve this? Thanks

Comment by maxime.d...@gmail.com, Aug 24, 2010

Hello, I'm using Linux version 2.6.32.2-FriendlyARM build with default config_mini2440_t35 config file. supervivi with command : linux command line is: "console=ttySAC0,115200 noinitrd root=/dev/mmcblk0p2 rootwait=4 rw ip=dhcp" But I've got error : {{{affs: dev is 187695106 name is "mmcblk0p2" yaffs: passed flags "" yaffs: Attempting MTD mount on 179.2, "mmcblk0p2" yaffs: dev is 187695106 name is "mmcblk0p2" yaffs: passed flags "" yaffs: Attempting MTD mount on 179.2, "mmcblk0p2" FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! List of all partitions: 1f00 256 mtdblock0 (driver?) 1f01 128 mtdblock1 (driver?) 1f02 5120 mtdblock2 (driver?) 1f03 125568 mtdblock3 (driver?) 1f04 131072 mtdblock4 (driver?) b300 995328 mmcblk0 driver: mmcblk

b301 49745 mmcblk0p1 b302 944768 mmcblk0p2
No filesystem could mount root, tried: yaffs yaffs2 vfat Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) Backtrace: [<c0035270>] (dump_backtrace+0x0/0x10c) from [<c03958f0>] (dump_stack+0x18/0x1c)
r7:c39230cb r6:c0503ed0 r5:c3923000 r4:c3823f40
[<c03958d8>] (dump_stack+0x0/0x1c) from [<c0395940>] (panic+0x4c/0x134) [<c03958f4>] (panic+0x0/0x134) from [<c0008efc>] (mount_block_root+0x1d8/0x234)
r3:c3823f40 r2:c3823f54 r1:c3823f40 r0:c0453720
[<c0008d24>] (mount_block_root+0x0/0x234) from [<c0009008>] (mount_root+0xb0/0xf...}}} Thanks

Comment by abifsh...@gmail.com, Dec 16, 2010

muahahahaha my mini2440 has been running with emdebian lenny n i have de GUI x-window :) i've been creating a manual how says how to install the GUI icewm :)

Comment by star2...@gmail.com, Sep 19, 2011

Hey, abifsh...@gmail.com,Can you give me your manual how to install the GUI icewm? Please send to my email: star2523@gmail.com .Thank you!!!

Comment by sivakuma...@gmail.com, Oct 3, 2011

Excellent tutorial, i followed the steps, it works fine.

But shutdown command is not working. I am getting following error when i give shutdown -h now

sh-3.2# shutdown -h now shutdown: /dev/initctl: No such file or directory init: /dev/initctl: No such file or directory

Is it possible to display the console in Touch screen which comes with mini2440


Sign in to add a comment
Powered by Google Project Hosting