tiny6410 - ubuntu install problems

Sundeep Goel
Hi,

I am trying to load ubuntu on the following board without success.

version : 1220
CPU : S3C6410 533Mhz
RAM : 256MB
NAND : 256MB(SLC) ID: ECDA1095
LCD Type : H43(auto)


FriendlyArm.ini settings that i used
--------------------------------------------------
LCD-Mode = Yes
LCD-Type = h43

CheckOneButton=No
Action=install
OS= Ubuntu

VerifyNandWrite=No

StatusType = Beeper| LED
#################### Ubuntu #####################
Ubuntu-BootLoader = superboot-6410.bin
Ubuntu-Kernel = Ubuntu/uzImage_n43
Ubuntu-CommandLine = root=ubi0:FriendlyARM-root ubi.mtd=2 rootfstype=ubifs 
init=/linuxrc console=ttySAC0,115200
Ubuntu-RootFs-InstallImage = Ubuntu/rootfs_ubuntu-slc.ubi
Ubuntu-RootFs-RunImage = Ubuntu/rootfs_ubuntu.ext3

The install runs fine till 82% and then stops with an error. 

I even tried to install with following setting (even thought he NAND said
SLC), but this stopped at 79% 
Ubuntu-RootFs-InstallImage = Ubuntu/rootfs_ubuntu-mlc2.ubi 

Please suggest a way out ?

Sundeep Goel
am really stuck, anyone, any advise ?

ThomasM
Hi,
I want to approach something like you
where did you get the rootfs_ubuntu.ext3 from?

Are you sure it is possible to use the uzImage_n43 for the H43 Display?

holger
> The install runs fine till 82% and then stops with an error. 

What is the error message?

ThomasM
Another question, because I created now a runimage too, but mine got 800MB!
And my Kernel is about 70 MB, together with the Bootloader I don't have
enough space on my 1GB SD Card. If yours gets big too, perhaps thats the
reason why it doesn't continue after like 80%?

Sundeep Goel
What is the error message?

no error message - just starts beeping.

Sundeep Goel
> where did you get the rootfs_ubuntu.ext3 from?

It wasnt on the DVD, so i built it using mktools.

Sundeep Goel
>Another question, because I created now a runimage too, but mine got
800MB!
>And my Kernel is about 70 MB, together with the Bootloader I don't have
enough space on my 1GB SD Card. If yours gets big too, perhaps thats the
reason why it doesn't continue after like 80%?

I have a 4G card, so i should not be an issue. however, the NAND flash is
only 256 MB, so i dont know how that factors in.

ThomasM
Hi, I got it running now on my SD Card.
I had the wrong file which I thought would be my Kernel, so that problem
was solved.
At the end because of the display difference between the N43 and the H43, I
took the Android Kernel for the H43 (azImage_h43) together with my 800MB
runimage (xubuntu) and it went very well (you just have to connect a
keyboard, because you have to "startxfce4" (atleast I had to do so)).

Did you try to run it from SD Card either?

ThomasM
Okay when I try to install (my slc ubi is around 307MB), it starts beeping
and says "failed" to on 82%. I would say you should try to start it from SD
card as I think this is a problem with the space on the nand (if your ubi
is 307MB to - calculate - 307 MB = ~100%, 251 MB = ~82%, NAND Flash =
~256MB, add the bootloader - and you are at the limit.

So I recommend you to start from sd card just for testing purpose.

Sundeep Goel
> Okay when I try to install (my slc ubi is around 307MB), it starts
beeping
and says "failed" to on 82%. I would say you should try to start it from SD
card as I think this is a problem with the space on the nand (if your ubi
is 307MB to - calculate - 307 MB = ~100%, 251 MB = ~82%, NAND Flash =
~256MB, add the bootloader - and you are at the limit.

> So I recommend you to start from sd card just for testing purpose.

Please say what setting did you use for the ini file and also how did you
create the ext3 file cause that was not there on the DVD?

Sundeep Goel
please also say where you got the xubuntu file, the disk which i have only
has the ubuntu direrctory

ThomasM
Hi, I'm sorry but I am currently not in front of my computer from work (I
had tested it there), but the important changes I did to the
FriendlyARM.ini were the following:
action=run
OS=Ubuntu

then:
################### Ubuntu #####################
# I had the superboot on the same fs depth like FriendlyARM.ini
Ubuntu-BootLoader = superboot-*someNumbersIDon'tRemember*.bin
# Jeah I know this is "the one" for android, but as I have watched the
# config and did a diff on the n43 and h43 I have seen there was only one
# line, and I was to lazy recompiling the whole thing when it should be
# just the same. At least for me, it worked perfectly, so just try it,
# this way you won't have this wrongColorPixels
Ubuntu-Kernel = Ubuntu/azImage_h43
# no changes here
Ubuntu-CommandLine = root=ubi0:FriendlyARM-root ubi.mtd=2 rootfstype=ubifs
init=/linuxrc console=ttySAC0,115200
#not needed for running on sdcard (I hadn't enough space because of too big
ext3
 Ubuntu-RootFs-InstallImage = Ubuntu/rootfs_ubuntu.ubi
# This one is needed and I will try to explain what I did
Ubuntu-RootFs-RunImage = Ubuntu/rootfs_ubuntu.ext3

I had to make the .ext3 myself because I haven't found it anywhere on
disk2.
So:
On Disk one (
ftp://ftp.friendlyarm.net/mini6410-tiny6410/Tiny6410A-20120726.iso )
I extracted the Ubuntu_rootfs_*someOtherNumbersIDontRemember*.tar.gz
to a subfolder in my home dir 
mkdir ~/my_temp_working_dir
tar -xzf /mnt/cdrom/Ubuntu/ubuntu_rootfs_*theSameNumbersBlabla*.tar.gz
~/my_temp_working_dir/

cd into your ~/my_temp_working_dir
you will now need some tools which are on one of the two cds (
ftp://ftp.friendlyarm.net/mini6410-tiny6410/Tiny6410A-20120726.iso or
ftp://ftp.friendlyarm.net/mini6410-tiny6410/Tiny6410B-20120726.iso )
they are packed in a tools subfolder - in there you can find an mkext3 or
something like that. Put that app into the same folder (for example)
and do
./mkext3 ubuntu_rootfs_*againAllThoseNumbers* ubuntu_rootfs.ext3

it will work for some time and then you get a big .ext3 file. That was the
one I used and it was like 800MBs big.
I guess there are a lot of programs and files in it, which aren't for any
use if you use a small display like 4.3", but for testing purpose it's
fine.

After booting you will see that you wake up in a tty - just call startxfce4
and wait a bit, afterwards the tty will get a window and you will be happy
:).

P.S.: you will notice that most windows are not possible to scale down for
a 4.3" 470x272 display so it isn't that fun I thought - but if you want to
create your own programs and play a bit with it, I'm sure you will be happy
with it :)

have fun and happy hacking

ThomasM
long stories short:

extract the ubuntu rootfs from the CD A (most actual version)
and call the mkext3 tool which is also in CD A (perhaps also B)
with the first parameter the extracted folder, and the second as the output
filename (for example ubuntu_rootfs.ext3)

Then mix everything together like this:
/ - sdcard
/images/
  ->   /Ubuntu/
  ->      ->  /azImage_h43
  ->      ->  /ubuntu_rootfs.ext3
  ->   /FriendlyARM.ini
  ->   /superboot-xxxxxxxxxxx.bin

edit the FriendlyARM.ini with correct paths and change
action=run
OS=Ubuntu

et voila

sundeep goel
Thomas, that was brilliant, thanks very much for the help.

tritac
i used this
./mkext3image ubuntu_rootfs ubuntu_rootfs.ext3

it kept  showing   "Permission denied"
any idea to solve ?

tritac
root@ubuntu:~/ubuntu# mkext3 rootfs-ubuntu-0910 rootfs-ubuntu.ext3
mkext3: command not found

root@ubuntu:~/ubuntu# mkext3image rootfs-ubuntu-0910 rootfs-ubuntu.ext3
mkext3image: command not found

mohsen
the topic was too old but not complete
but i am writing to some one like me that have this problem

for running mkext3image need  libc6-i386 package for running 32 bit
executable program on 64 bit system
just type 

sudo apt-get libc6-i386