Wednesday, September 16, 2009

Nth Code Player

This time we are going to try the nth Code Player.
It can be downloaded from here. (Please start the download)
I bought a new MMC Card (this time a 2Gig SanDisk), which will give me a chance to play with the expert mode of fdisk.
Remember from my previous post that we need a special geometry to work on the Beagle? It's 255 Heads 63 Sectors 512 bytes per sector.
This time my Sandisk has 64 Heads/63 Sectors and a size of 1977614336 bytes.
... no good ...
I followed this article and did the maths:

cylinders = size in bytes / 255 / 63 / 512 = 240,32 which needs to be rounded DOWN to 240.

So I created a new geometry as follows:

Disk /dev/sdc: 1977 MB, 1977614336 bytes
255 heads, 63 sectors/track, 240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
and two partitions:
Device Boot      Start         End      Blocks   Id  System
/dev/sdc1 * 1 51 409626 c W95 FAT32 (LBA)
/dev/sdc2 52 240 1518142+ 83 Linux
Now let's copy over the nth code player stuff and give it a try.

In the meantime your download should have finished, so let's unpack the file.
tar xzvf nthcode.tgz
tar xzvf nthcode/kernel.tgz
This contains a Readme, which we are going to follow approximately;)

You need to mount the two partitions followed by copying stuff over.
sudo cp kernel/MLO /media/MMC-msdos/
sudo cp kernel/u-boot.bin /media/MMC-msdos/
sudo cp kernel/uImage-bb /media/MMC-msdos/
cd nthcode
sudo tar xzvf rootfs.tgz
cd rootfs
sudo cp -ar * /media/MMC_ext3
unmount the card

Let's run it
mmc init
fatload mmc 0 0x80300000 uImage-bb
setenv bootargs 'console=ttyS2,115200n8 colsole=tty0
root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
omapfb.vram=1:4M;2:4M omapfb.mode=dvi:hd720-24@60'
bootm 0x80300000
And for the first time in history we see full screen graphics and can surf the web in full screen!
We'll try another time to play some multimedia content.

No comments:

Post a Comment