Debian Lenny Base Install with Xorg (Mini2440)

Coburn64
Hey peeps,

I managed to get Debian Lenny (armel edition) working with Xorg 7.x. Below,
I'll be sharing the files. The screen image is rotated Counter-Clockwise
(270 degrees?) and Touchscreen works perfectly!

Here's what you'll need to do:

NOTE: uBoot is needed. I did try to make a normal image, but
makeyaffs2image bombed out that the index file table was full.

Make 2 SD Card Partitions. On my 2GB SD Card, I made a FAT16/FAT32
Partition for the uBoot Kernel. The other partition was EXT3 Linux.

For example: 

Disk /dev/sdd: 1977 MB, 1977614336 bytes
64 heads, 63 sectors/track, 957 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b069e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          51      102748+   b  W95 FAT32
/dev/sdd2              52         827     1564416   83  Linux
/dev/sdd3             828         957      262080   82  Linux swap

Download the essentials:

Uboot Image: http://www.furyfile.net/get.php?id=VulCeUn
Debian RootFS: http://kthxbai.geekinthefamily.com/whoo/archive.tar.gz

Make sure that you set the bootcmd and bootvars like so in uBoot:

(CODE START)
setenv bootargs console=ttySAC0,115200 root=/dev/mmcblk0p2 rootfstype=ext3
mini2440=3tb rootdelay=3 init=/linuxrc

setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 uImage \; bootm
0x31000000

saveenv
(CODE END)

You may need to edit the boot arguments to suit your needs. Your mileage
may vary. Do mkdosfs & mkfs.ext3 on the partitions respectively. Unpack
uImage to the FAT partition in the root directory (not under any
subfolders). Unpack the archive tar to the second partition (the EXT3 one).

Here's some stuffs:

1. Root password is blank. Insecure, no?

2. Without X running, RAM Usage is 9MB (you count the used RAM without the
cache, so 22-11 = 9MB.

(QUOTE START)
mini2440:~# free -m
             total       used       free     shared    buffers     cached
Mem:            59         22         37          0          1         11
-/+ buffers/cache:          9         50
Swap:            0          0          0
(QUOTE END)

With X Running, RAM Usage is 11MB.

(QUOTE START)
mini2440:~# free -m
             total       used       free     shared    buffers     cached
Mem:            59         31         28          0          1         18
-/+ buffers/cache:         11         48
Swap:            0          0          0
(QUOTE END)

3. All your base belongs to Coburn.

4. You praise me for my awesome linux skills (optional, but please do!).

5. LEDs mean the following: LED1 = Power (?), LED2 = ???, LED 3 = Flash/SD
Card access (R/W), LED 4 = ???. LED1 seems to be blinking like a
"heartbeat", it seems it's saying that the Mini2440 is alive.

6. Ditch rsyslogd (apt-get --purge remove rsyslogd). It's fat, bloated and
would possibly rape your SD Card.

That all aside; Questions? Comments?

davef
The rootfs link doesn't work.

Cheers,
Dave

Coburn64
@davef: Link now works, thanks for the heads up.

davef
Thanks.  Have heard people talking about armel, but never tried it.

Re-reading your intro . . .
***
I did try to make a normal image, but
makeyaffs2image bombed out that the index file table was full.
***
Wouldn't makeyaffs2image choke on a uImage, or did you change to uboot
after trying Supervivi?

I'll get a chance to look at this later this week.  Will this run on a 64M
machine?  Which version of u-boot did you use?  u-boot.bin or a newer
version.

Regards,
Dave

davef
Should have looked at the file size before asking if it would run on a 64M
machine :(

Attracted by Xorg and your modest RAM figures.

Dave

zogzog
Hi,
thank a lot for posting your work.
working great, but the network interface (eth0) refuse to go "up".

mini2440:~# ifup eth0
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.

any advices ???

Zogzog.

zogzog
find a solution:

#ifconfig -a
report a eth3 ?????
so I change eth0 to eth3 in /etc/network/interfaces (2 occurrences)

then #ifup eth3
and it work :)

Zogzog.

stereo_m
I think you need to delete /etc/udev/rules.d/70-persistent-net.rules as it
probably contains Coburn64:s MAC-address, it is then rewritten at bootup
with your own mac address, as you have set it in u-boot with "set ethaddr
08:00:2f:00:00:02" (replace with what you want) and saveenv + enter.

cristian
Thanks a lot, going to try it tomorrow.

Some quick questions:

Is it possible to install apps using apt or using opkg? (apps compiled
using OE, like i2c-tools)

What toolchain/tutorial/guide did you use to build the rootfs?

Coburn64
stereom is correct, it does contain my MAC addresses.

I used the 2010-07-01 uboot (available from downloads page), and chose
"u-boot-256M". There's a 64M version in there, I think...

I tried to make a yaffs2 image for the rootfs so I could flash it on my 1GB
Mini2440 using SuperVivi. Sadly, it didn't work so crash hot and mkyaffs
just said "Index table full" after it got into the /var/ directory.

You can install apps via the apt-get command, it's using the Debian Lenny
ARM sources (packages.debian.org). Eg. apt-get install icewm .

I actually used a rootfs provided by thai-embedded.net - it's mainly a
bootstrapped armel Debian Lenny base install (debootstrap, anyone?) with my
modifications. I managed to get the touchscreen working for our own needs.
:) (IceWM works a treat on it, but the fonts are midget-sized!)

I'm currently playing around with Angstrom now, but don't worry - any
questions? I'll answer 'em! :)

Cheers,
Coburn64

srikanth
Hi Coburn64,
            U said U-boot-64M version is there can u please provide the
link and after installing , I want to develop application using gcc and
importantly I do require drivers for GPIOs,SPI,I2C is that available from
the archive what u provided or is it upgradable  using apt-get ( please
paste the link for Debian lenny packages ) please let me know

Whats the version of Linux kernel

srikanth
Hi Coburn64,
            I also want to check the output from my Vga screen connecting
thru lan port with mini2440 can u please suggest me the steps how to do it 
I generally do it using  # telnet ipaddress so does it work here incase of
Mini2440 board please let me know bcoz I right now dont have board at my
hand I've ordered it for purchase

Please Acknowledge,

Thanks in Advance,
SRIKANTH.

cristian
Thanks Coburn

I managed to install the rootfs on a sd card, and after configuring the
ethernet interface everything works ok, except I can't start X.

I can see the login prompt on the screen, but running X gives the following
error:

(==) Log file: "/var/log/Xorg.0.log", Time: Wed Aug 25 11:51:11 2010
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "void" (module does not exist, 0)
(EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
(EE) FBDEV(0): mode initialization failed

I have T35 screen.

cristian
Got it working.

I was using kernel 2.6.33 from buserror git.

This one works fine. Now I'm trying to get i2c-tools working.

peter a
Hi, I`m a relatively a newbie at this, but just about got it working.

I`ve made the SD card, which looks to be working , but need to get the
U-boot part working for at this time I`m loading U-boot into ram and
manually putting in the args .
Who cares it works for now !!! , Just a little change to mini2440=3tb to
mini2440=1tb for my 7 inch display. 
 
I`m also having problem getting up ethX  !!!
I`ve tried bring up eth3 and giving it a ip address , but still can`t ping
it.

Good work ..  Coburn64 , have you installed ssh into the image ?

cristian
Me again!

I can start X server but I can't manage to get a window manager working.

I tried .xsessionrc but it doesn't run matchbox or gpe

How did you install iceWM? Thanks.

peter a
Anyone having huge packet losses ( 60 to 80% ) ?

Coburn64
You'll need to manually install a Window Manager.

Here's my suggestion (do as root):

apt-get install xdm (for a login screen)
apt-get install icewm (for a window manager)
apt-get install dropbear (for a SSH Server)

No ssh is installed by default. You'll have to manually install it as above
due to host keys and the like.

Otherwise, you'll get the classic X mouse on Mac grey-and-black Xs screen
(the one you see by just running X).

@srikanth: I don't understand what you're trying to do. Are you trying to
connect a VGA Monitor via the LAN Port?

Coburn64
@peter a: About the packet losses, it could be that the device is busy
while you're pinging it, etc.

You may also want to add this in /etc/network/interfaces if not already
there:

(START)
auto lo
iface lo inet loopback
(END)

Also add in /etc/hosts if not already there:

(START)
127.0.0.1 localhost
(END)

then run the command: ifup lo which will bring up the loopback device,
which allows you to ping localhost.

cristian
Hello again.

I got xsessions working by installing xinit package and some other
dependencies like xauth and some configs.

My problem now is with font sizes. Everything look like dots on the screen.

Do you know how to get bigger fonts under X?

Also I got arora web broser working, but it's not too usable with it's big
menu, lots of space lost due to that.

Maybe there's a better web browser for using under X at 240x320, I'm still
investigating.

peter a
Well it`s totally useless with the packet loss I`m getting.
I`ve tried to do a apt-get update, and it`s so so slow and finishes up
timing out.
I`ve tried to download a picture off myself with wget and that just times
out !!!.
I tried putting the SD card in my other computer and looking at the
settings, it is looking like I`m going to have to do that again.
I may have to install the default qt Configeration back on and see how much
packet loss I get with that, to see if it`s hardware or software or is it
only me who cares about getting a working internet connection ?.

I`ll do the localhost bit , but I don`t think that will fix the problem.

peter a
tried again , it says 55 mins to download a 64k file off myself .

peter a
problem fixed !!!!!
don`t run u-boot from ram .
0 packet losses .. I`m happy .

davef
cristian,

I am using Arora based on these two files at Bill's Mini2440 Forum:
http://billforums.station51.net/viewtopic.php?f=8&t=15&start=80

Just sorting out an issue with the <password> functionality. It is the most
useful web browser that I have placed on the mini2440, so far.

Kongeror and the Mini web browser that comes with GPE just didn't cut it
for me.

Dave

zogzog
About the packet losses,
the apt repo is set to Germany, it may not be the best server for you if
you aren't in Germany (Even so, ie, my case, I live in Germany, but i find
that using the Netherlands server is much faster & reliable).
to change it edit /etc/apt/sources.conf ...

zogzog

srikanth
Hi Coburn64,
            I mean I want to connect the Host PC thru LAN port to  mini2440
board and want to see the terminal thru telnet ( my question is can I
connect that way to see the mini2440's terminal in my host PC)


Thanks in advance,
srikanth.K

srikanth
hi  peter,


I didnt get what do u mean by 


don`t run u-boot from ram .


can you please elaborate it and I want step by step procedure and 
can u also give different ways to run  u-boot  with (from ram ) and other
methods


Thanks in advance,
srikanth

srikanth
Hi Coburn,
          please paste the link to download the U-boot 64M,

Thanks in advance,
srikanth

srikanth
Hi Coburn64,
 
    the download of 

Debian RootFS: http://kthxbai.geekinthefamily.com/whoo/archive.tar.gz
is trouble some can u please check it or try to upload the file to
rapidshare or torrents

thanks in advance,
srikanth

peter a
Hi srikanth , before I just used the option ( download and run from ram )
which is a good idea but don`t work .
So I install u-boot to nand instead of supervivi

srikanth
Hi peter,
         Thanks for the reply, so the option comes during boot up ? or when
? , I'm asking these to get ready ahead bcoz my board is on the way 
well !

herez what I'm planning please correct me if I'm mistaken anywhere

1. make 2 partitions of  2gb SD card a) FAT16 for U-boot b) ext3 for linux
2.install U-boot from the above given link to FAT16 partition 
3.Untar the archive.tar.gz from the above given link to ext3 partition
4. place the 2gb SD card in the mini2440 and start booting

is that correct or how is the procedure 

please post me if you have the English manual ( size 24mb) which is in the
site of friendlyarm.net in chinese 
and or 

just guide me the steps 

Please Aknowledge,

Thanks in advance,
srikanth.

peter a
Hi, I`m a relatively a newbie at this, but just about got it working.

I`ve made the SD card which and looks to be working , but need to get the
U-boot part working for at this time I`m loading U-boot into ram and
manually putting the args .
Who cares it works for now !!! , I little change to mini2440=3tb to
mini2440=1tb for my 7 inch display. 
 
I`m also having problem getting up ethX  !!!
I`ve tried bring up eth3 and giving it a ip address , but still can`t ping
it.

Good work ..  Coburn64 , have you installed ssh ?


Anyone having huge packet losses ( 60 to 80% ) ?  

Well it`s totally useless with the packet loss I`m getting.
I`ve tried to do a apt-get update, and it`s so so slow and finishes up
timing out.
I`ve tried a download a picture off myself with wget and that just times
out !!!.
I tried putting the SD card in my other computer and looking at the
settings, it is looking like I`m going to have to do that again.
 I may have to install the default qt install back on and see how much
packet loss I get with that.


I can now switch it on for 10min with the command echo 0 >
/sys/devices/platform/s3c2410-lcd/graphics/fb0/blank


Hi , before I just used the option ( download and run from ram ) which is a
good idea but don`t work .
So I install u-boot to nand 

1/ get a computer running Linux with a SD slot
2/ insert the card and find what it`s called eg sda , sdb or mmcblk0
3/ fdisk the sd card .. eg fdisk /dev/sda
4/ make 2 or 3 partitions , 3 being the swap file
5/ set the partition types eg ( from Coburn64`s )
   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          51      102748+   b  W95 FAT32
/dev/sdd2              52         827     1564416   83  Linux
/dev/sdd3             828         957      262080   82  Linux swap

6/ mount the sd partations 1 and 2 
Eg mount /dev/sda1  /mnt/p1 &#61663; and make the dir first.
7/ copy and untar  http://www.furyfile.net/get.php?id=VulCeUn to partition
1 ( vfat - uimage )
And http://kthxbai.geekinthefamily.com/whoo/archive.tar.gz to partion 2 (
ex3 – rfs )

U-boot
Follow steps “Replacing the Bootloader” only on 
http://labs.kernelconcepts.de/Projects/Micro2440/

NOTES .. 
Don`t just press y , it`s y and < Enter >
nand createbbt , takes a long time on a 1gb nand

now you should be able to set any env variables and save then .

from Coburn64


setenv bootargs console=ttySAC0,115200 root=/dev/mmcblk0p2 rootfstype=ext3
mini2440=3tb rootdelay=3 init=/linuxrc

setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 uImage \; bootm
0x31000000

saveenv

You don`t need the init=/linuxrc and the mini2440=3tb dewpend on the led
screen size .
I think 3 is the 3 inch and 1 is the 7 inch .

You should have it working and booting without aid now.

peter a
oops pasted I little too much there ignore upto 1/ ---

srikanth
Hi peter,
          Thanx there for so much valuable information , I will definetly
try them if any questions occur I will paste them 

Thanks & Regards,
srikanth

peter a
I`ve missing a step of making the file system . 
so call it step 5.1

mkfs.vfat /dev/sdd1 
mkfs.ext3 /dev/sdd2
mkswap /dev/sda3

Coburn64
Uboot Download: http://friendlyarm.net/dl.php?file=u-boot_20100701.zip

If you want to see your Mini2440 Desktop remotely, look into a VNC setup.
That way, you can interact with the Mini2440 without having to actually use
the Touch Screen.

Also, for the font-sizes, I think I may have an idea, there's a kernel
parameter that can define the size of stuff (text).

Also, a warning: I appreciate everyone's discussion, but DO NOT double or
triple post. If you have something to say in addition to whatever you just
said, EDIT your post. Don't just go post post post post. This is called
"Thread Hijacking" and it really annoys me. Thanks for your understanding.

davef
If you would like to tell us how to edit posts I for one would be only to
happy to.

"Thread Hijacking" is when the subject matter is totally off the subject of
discussion.  Like this post!

People who don't use the left-hand search button annoy me. 

The other thing that would be nice is a "Sticky thread", but this forum
doesn't support it.

Kind regards,
Dave

cristian
Coburn, I already answered you about font sizes in another thread, for
console and for X11.

Coburn64
Just to make clear, I'm not angry with anyone. Sorry if I sounded angry, I
was just annoyed.

@Davef: Acknowledged. I can't see a way to edit posts, I'll poke around.

@cristain: Acknowledged, thanks for that. :)

peter a
I think this is the only forum where I can`t edit my posts or where there
is no option to send a private message etc.
I`ve set vnc up on my sheevaplug and it works well for remote viewing, but
what the point of the lcd display.
Is there any way to get the ice windows manager on the lcd screen without
XDM putting up a log in screen and having to put in a keyboard just to log
in ?

Coburn64
Yeah, you can bypass XDM.

Just do at a command prompt:

apt-get remove xdm
export DISPLAY="localhost:0"
X &
icewm &

Job done.

srikanth
hi peter,
         I finally got my board mini2440 , I tried the steps which you've
pasted above but I couldn't do it successfully and finally I lost the
pre-loaded linux , unfortunately I couldn't take any backup of the Nand
flash can any one guide me how to start from the first to rebuild the linux
which came during shipping I'm finding it hard bcoz I got the DVD which has
all chinese manuals and some softwares aren't working 
well the last thing that works on my board with switch S2 in NOR direction
powered on is I can only see the options in hyperterminal and I'm trying to
build the Linux in nand flash ( i've formatted nand flash ) and tried to
set parameters using S ,

any suggestion would greatly work for me

thanks,
srikanth.

srikanth
Hi Coburn,
          where to enter the bootcmd and bootvars in uboot , I mean there
is no command like setenv or saveenv 

should we do it in host pc ?

please acknowledge,
 
Thanks in advace,
srikanth.k

peter a
o.k a little confused , after you installed uboot and set it up right .
you should have a boot message like :

?????? = ????
?????? = ????
?????? = ????

boot in 3 second ... press to stop ?( or some thing like it )

You should type in :-

setenv bootargs console=ttySAC0,115200 root=/dev/mmcblk0p2 rootfstype=ext3
mini2440=3tb rootdelay=3 init=/linuxrc

setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 uImage \; bootm
0x31000000

saveenv

ps you should have set the switch back to nand , after install u-boot!!!!

srikanth
Attachment: Screenshot.png (84.29 KB)
hi peter ,
           thanks for the reply but I did follow ur suggestion but I got
the error as shown in the picture

and more over I want to try it from USB device (instead of sd card, I want
to boot from USB pen drive of size :4g) I just want to let u know my
configuration of board so that u can suggest me the right u-boot.bin

here itz my mini-2440 :RAM 64M, nand flash 128Mb, 

when I tried nand scrub it is giving me the error becoz of device 0
and nand createcbt is also giving error

srikanth
Hi Coburn64,
             root=/dev/mmcblk0p2 for SD card then what is it for USB stick
if we want to boot from USB stick.

Thanks in advance,
sri.

mouha
This thread is really interesting, but I'm lost in all corrections from
the original post of Coburn.

Has someone the final notes with corrections from the posts here ?

srikanth
Hi Mouha,
         what topic do u need ? u need to choose the correct U-boot for
your board based on Nand flash size sayy 64M, 128M ,256 M well if u can
mention what exactly u need we will give out brief steps.

regards,
sri.

ellion88
Hello Coburn64,

I have rebuilds my kernel for my drivers (USB cards for servomotors) and
futur developpement.
But, I have a little problem with udev, tty, eth et another config.
It's my config of kernel (I use the 2.6.32.2) 
Can you attach the ".config" file of your config kernel in this 
post please ?

Thank's in advance, 
Best regards.

ellion

P.S : You have make a good tutorial  in this post / and sorry 
for my english.

srikanth
Attachment: login problem for mini2440.png (158.33 KB)
Hi Coburn64,
            while untaring uImage to SD card partition 1 I'm getting the
error saying uImage can't change owner ship uid:1000 n gid:1000 well I've
tared uImage to another location and pasted into SD card's FAT partition 

well I finally finished successfully but the only problem is during booting
it is taking a while upto 5 mins and 

intrestingly I can't login please check the Images above

thanks for all ur support,
sri.

srikanth
Attachment: loginprompt mini2440.png (104.63 KB)
hi all,
       did any one get the same problem for login please check 

thanks,
sri

mouha
Hi Srikanth,
I was talkin about this topic, ie: installing Debian into mini2440, because
I better know it than "openembedded - bitbake - angstrom" managements.

What thought is to group all the feedbacks and corrections from posts here
into a kind of tutorial.

Just an idea

srikanth
Attachment: friendlytools.tar.gz (128.64 KB)
hi Mouha,
         I will give some steps 
1.install u-boot to nand flash
procedure is a> switch on board with NOR position 
b> press f ,press x,press q
u will get supervivi > load ram 0x31000000 239106 u
supervivi> go 0x31000000
u get mini2440# nand scrub enter, nand createbbt enter, nand write
0x31000000 u-boot enter,dynpart enter, dynenv set 40000 enter, saveenv
enter, reset enter 
note: 239106 is the size of u-boot.bin which I'm using and u can use it as
per ur requirement

 u better follow this link http://www.youtube.com/watch?v=oi66srITOcA
only till u get U-boot on NAND flash

2. OS installation on SD card
1/ get a computer running Linux with a SD slot
2/ insert the card and find what it`s called eg sda , sdb or mmcblk0
3/ fdisk the sd card .. eg fdisk /dev/sdb
4/ make 2 or 3 partitions , 3 being the swap file
5/ set the partition types eg ( from Coburn64`s )
   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          51      102748+   b  W95 FAT32
/dev/sdd2              52         827     1564416   83  Linux
/dev/sdd3             828         957      262080   82  Linux swap

mkfs.vfat /dev/sdd1 
mkfs.ext3 /dev/sdd2
mkswap /dev/sda3

6/ mount the sd partations 1 and 2 
Eg mount /dev/sda1  /mnt/p1 &#61663; and make the dir first.
7/ copy and untar  http://www.furyfile.net/get.php?id=VulCeUn to partition
1 ( vfat - uimage )
And http://kthxbai.geekinthefamily.com/whoo/archive.tar.gz to partion 2 (
ex3 – rfs )


mini2440#
setenv bootargs console=ttySAC0,115200 root=/dev/mmcblk0p2 rootfstype=ext3
mini2440=3tb rootdelay=3 init=/linuxrc

mini2440#
setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 uImage \; bootm
0x31000000

mini2440#
saveenv

mini2440# reset with NAND position 

NOTE: u need to have s3c2440_usb, usbpush software,U-boot download from my
post incase u have any problem paste the  error occured then it will be
easy for me to

Coburn64
Thought I'd mention that you must copy the rootFS to the EXT2/EXT3
partitions as root, else it will not work.

srikanth
Hi Coburn64,
            I'm glad u replied well, I'm able to boot but not login thats
the only problem and regarding the apt-get is not working in embedian  grip
I tried to load that as well but where do I get repositories for embedian.

Regards,
sri.

srikanth
Hi Coburn64,
        I have used this from link 
http://code.google.com/p/mini2440/wiki/Emdebian

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 

thanks,
sri.

ellion88
Hello Coburn64,

Can you read my post ?
Can you upload in this post your ".config" file please ?

Thank's in advance
With best regards,

ellion

mouha
Hi
Thank you  srikanth, 
I put the informations here to a publishable document.

You can find it here :

<link>
http://dlewin.free.fr/davblog/wp-content/uploads/Debian_Howto.pdf
</link>

hope that will help.


Of course, tell me if you find mistakes, mispells or evolutions to bring
tell me.


DL

srikanth
Hi Cobrun64,
            I've finally got it working everything including apt-get
install ( i mean repositories are getting connected)

well I've have one more final question how to stop X server ( I mean I dont
want to run X-windows) 

and secondly I want drivers for GPIO,SPI can u please tell me how to do it
and I also need .config file please upload that too
or release a patch for it.


thanks in advance,
sri.

mouha
Srikanth, look at 
my thread http://www.friendlyarm.net/forum/topic/653

for this Open Nandra did a great job, and after tests : it works

srikanth
Hi Coburn64,
            Can you please tell the step by step procedure how to make 
archive.tar.gz  becoz I also want to make one rootfilesystem from
Linux-2.6.32.mini2440.tar.gz , I've successfully created uImage from this 
and copied it to FAT partition of SD card and for ext3 partition of SD card
I want to make on rootfilesystem can you please give me the detailed
procedure or any web links that give the instructions how to make a
rootfilesystem, well I've looked it in google and I got one for making
yaffs2 files system from this link


http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=...


but I want to make  for ext3 filesystem

Thanks in advance,
sri.

peter a
Hi srikanth, So have you have made the kernel and the modules for that
kernel ?
Because after you have made the root file system you need the patch it with
the modules for the kernel ( uImage ) you have just made.   (
http://billforums.station51.net/viewtopic.php?f=4&t=20 )

Somewhere there is a script file which make the RFS for you .

http://code.google.com/p/mini2440/wiki/EmdebianChroot

http://code.google.com/p/mini2440/wiki/Emdebian

http://bill.station51.net/index.php?tag/mini2440

http://www.modbus.pl/S3C2440FS.html

OR just use google like everyone else !!!!!

srikanth
Hi Peter,
         Thanks for the reply , so u mean to tell that after creating
rootfilesystem we need to add the modules right ?

well firstly I will look into the links u've pasted.

thanks,
sri.

peter a
Yep, for every version of the kernel, you need its own version of modules. 
So if you make a kernel image, it`s of no good without the modules to go
with it.

srikanth
Hi Mouha,
         regarding the 

http://dlewin.free.fr/davblog/wp-content/uploads/Debian_Howto.pdf

the bootargs of 

mini2440#
setenv bootargs console=ttySAC0,115200 root=/dev/mmcblk0p2 rootfstype=ext3
mini2440=3tb rootdelay=3 init=/linuxrc

mini2440#
setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 uImage \; bootm
0x31000000

mini2440#
saveenv

mini2440# reset with NAND position 

this varies according to the Linux distro choosen and the filesystem they
are using and some paramters like init=bin/sh or init=/linuxrc or
init=/bin/bash and mentioning of rootfilesystem=ext3 or jffs2 
ans mentioning of noinitrd 

well, some of them needs to be tested by trial and error basis at initial
stages and once u login successfully and if repositories are working
correctly like apt-get install (packages ..) they can modify the parameters
in U-boot accordingly

these are my personal experiences

if anybody feels I'm wrong please correct me

thanks in advance,
sri.

peter a
In the RFS we started with on the top of this page, the init=/linuxrc can
be dumped because linuxrc isn`t there to run.

So I just knocked it off :-

The best way to write an uboot line is to understand each element of the
line.

zogzog
Sure, but it's not the best way to pollute an interesting thread....

Zog.

It is impossible to make anything foolproof because fools are so ingenious.

mouha
Srikanth,

I understand what you mean, but the goal was not to have a complete
tutorial, but something to start with Debian, to have a better trace of
what is said here.

In case of "how to install uBoot" or "kernel" I rely on Bill's tutorials.

srikanth
Hi Zog,
       If u can help do, don't comment ingeniously itz a waste of thread
particularly polluting. No body is genius without testing or if not
successfull.

regards,
sri.

zogzog
hi srikanth, 

I don't really want to start a war here, but please, before Beging for some
answer (already answered in other threads), use google, or even your own
brain. 

Then think about your question(s) and redaction, so you won't have to post
4 time in a row and peoples will be able to read your strange language.

And I wish I could help, but this thread isn't a place to work
any-more.....

Zogzog.

Paranoid Club meeting this Friday. Now ... just try to find out where!

Rolly
All works fine with my 3tb display out of the box (I had only the eth3
thing), thanks Coburn64.

The display works in the normal portrait orientation. I'll try to rotate
the display in X with Option "Rotate" "CW" in the device section of
xorg.conf. This works, but when I touch the touchscreen I'll get a SIGSEV.

gdb message:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x403af000 (LWP 20576)]
0x00123720 in RRFirstOutput ()

log message:
Backtrace:
0: X(xf86SigHandler+0x70) [0x75f50]
Fatal server error:
Caught signal 11.  Server aborting

Has anyone a hint for me what the rotation has to do with the touch device?

Roland

MikeB
Rolly,

When I modded the xorg.conf file and changed the rotate option it only
affected my cursor direction.

Can you post your xorg.conf?
Especially if it has a working usb mouse with touchscreen.

I am using xdm and icewm. I don't need xdm, but i cant get icewm unless i
use it. I just get the blank X with cursor.  

Some other useful(maybe) goodies:

To rotate the console check this thread: 

 http://groups.google.com/group/mini2440/browse_thread/thread/5195965944a...

to change the font size check this one:

http://www.friendlyarm.net/forum/topic/1599

Zaba
Hallo,
very very well.

very much thank you. but I need the kernel with module FUSE for owfs

MikeB
Zaba,
  Peter A posted this link a while ago. 

http://billforums.station51.net/viewtopic.php?f=4&t=20

You have to make sure to do the module install portion and or compile fuse
directly into your kernel.

What 1-wire master are you going to use?

MikeB
Does anyone have a mouse working in X?
Or X working in landscape?

stereo_m
Has anyone got this working with buserrors kernel from the git source? I
get the following error when I try to start x:

(EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
(EE) FBDEV(0): mode initialization failed

What could be wrong?

MikeB
Coburn64's kernel config would be extremely handy....

Slycom
Hi,

I've just installed Debian on my Mini2440 256mb but I have a problem with
my LCD. When the device is starting then I cn see the Debian "progress
splash screen" and then the X Window Manager screen is shown. How can I
login if there is no any virtual keyboard?

I've used:
apt-get install xdm
apt-get install icewm

and with no result. I can login using my PC with serial cable connected and
when I type X then the Mini says that the X is running.

Slycom
Or how can I run Xorg?

MikeB
If you dont need multiple users dont use xdm. remove it.

but do install Xorg



the font issue for x is here
http://www.friendlyarm.net/forum/topic/1599

Slycom
Could someone give me advice how to set xorg properly? 
I removed xdm, 
I have installed icewm and xorg

After logged to the system I type X then I've got following message:

(==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 27 20:35:45 2010
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "void" (module does not exist, 0)
(EE) No Input driver matching `void'
xf86optionListCreate: count must be an even number.
State: S_UNTOUCHED  Action: No Action    Button: 0
State: S_TOUCHED  Action: No Action    Button: 0
State: S_LONGTOUCHED  Action: down    Button: 1
State: S_MOVING  Action: No Action    Button: 0
State: S_MAYBETAPPED  Action: click    Button: 1
State: S_ONEANDAHALFTAP  Action: down    Button: 3
[config/hal] couldn't initialise context: (null) ((null))
^CFreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1;
fixing.

And I have grey screen with X.

I'm completely stuck :(

MikeB
i did a:

apt-get --purge remove xorg icewm

to remove any traces of a botched install..

then did a 

apt-get install xorg icewm arora



startx

MikeB
Has anyone recompiled the kernel for the Debian Lenny for this thread?

I've tried following http://billforums.station51.net/viewtopic.php?f=4&t=20
kernel boots and all seems well except X dies.

Slycom
It works now. I can see Debian layout with toolbar but I'm little confused.
Is there any way to type commands for example in the terminal window like
in Qtopia using virtual keyboard? Also I can change the font size but how I
can rotate the screen?

MikeB
You would need to install a virtual keyboard app. This is a very "base"
install. 

Maybe there is a screen rotate app too...
but you can do some poking around /etc/X11/x.conf for the tweaks to rotate
the screen.

MikeB
Any way to reverse engineer the default options of a kernel? That way i can
set the right options in the "make menuconfig" to add features to this
kernel. any ideas? or the kernel config file from coburn64 would be awesome
too....

Sarahana T Kasiyapa
archive.tar.gz download link unavailable, kindly update the link

James
Has anyone got this working with buserrors kernel from the git source? I
get the following error when I try to start x:

(EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
(EE) FBDEV(0): mode initialization failed

What could be wrong, or which option sre missing in the kernel?

Thanks
James

stereo_m
I can't neither use this with buserrors kernel, I got some similar errors
when I tested. It would be really awesome to get it working with buserrors
kernel, so that newer X35 displays could be used.

shaka
hi guys, i recommend use a fluxbox window mannager, because is one of the
most light packages, in my cases I've been using the micro2440 mmm with a
7", wathever, I did some GUI in pygtk, and some comunnications with the
serial port and TCP/IP. really is very easy use the micro2440 but you need
a lot of time to investigate XD, because most of the informations is in
chinese.. see u guys

rudie
also fighting with the error and found a sulotion on a japanisch site,
http://www.mech.tohoku-gakuin.ac.jp/rde/contents/tech/mini2440/install_s...
thx google translate :-)

you need to ad one line to the fb driver im kernel.

edit this in your kernel ../linux/drivers/video/fbmem.c

Rewriting point (fbmem.c, near line 1050)

   case FBIOPUT_VSCREENINFO:
        return 0;       #### INSERT THIS LINE ####
        if(copy_from_user(&var...))
        return -EFAULT;

recompile your kernel(uImage) and be happy.

took me half a day to fix this litte problem. :-(

greetings
rudie

Chesstrian
Hi, link for Debian FileSystem is broken.

sanket
http://kthxbai.geekinthefamily.com/whoo/archive.tar.gz
Link doesn't works.....

Brian
Both links for these images do not work....

Uboot Image: http://www.furyfile.net/get.php?id=VulCeUn
Debian RootFS: http://kthxbai.geekinthefamily.com/whoo/archive.tar.gz

Anyone got them working recently?????

Sivakumar
HI try this link it is working

http://www.thaiembedded.net/forum/index.php?topic=9.0
this link have debian kernel and file system.

http://www.thaiembedded.net/forum/index.php?topic=6.0
this link have suggestion to install this kernel and filesystem.

all link is thai language.
You must be use google translation.

Sivakumar
This site contains tutorial on Preparing, root file system, xorg,
Touchscreen

http://project4fun.com/node/4

Tolun ARDAHANLI
Hi guys,

Whole parts has been worked for me very
well(7"touchscreen+uBoot+kernel+RootFS(debian)+mini2440). if anyone need
any advise of "how to do it" just contact me for consulting;)

Sincerely,

raju
Hi Tolun

I also want to install debian on Mini2440 , can u provide tutorial on how
to install and use it. 

       And may i know the debian is the one where we can use all the
commands and softwares like linux r8? i mean download and install all of
them on board only...kindly correct me if i am wrong