Jump to content


Photo

[WIP] Install Linux on NAND


  • Please log in to reply
45 replies to this topic

#1 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 05 March 2012 - 01:01 AM

Hello :)

Well, I was looking to install Linunx on these machines. Wicknix has provide the Angstrom and Debian images, but as everybody, can't install on the NAND. I found this problems:

1. Don't know how to resize/create/delete MTD partitions
2. Filesystem-NAND partition is too small for the lightest image (aprox. 700mb for Angstrom).

So, I have been ALL weekend (yes, ALL, even playing domino with my friends and working on these netbooks!), and I have just found the solution! Well, it is not the best, but it is working. Be aware, this WILL destroy your current Android partition, you will need to reinstall it.

1. Boot using Debian or Angstrom, using wicknix images.
2. Use "flash_eraseall /dev/mtd14" to eliminate all data on that partition (it is android-data, which is aprox. 1.5gb)
3. Use "mkfs -t ext2 /dev/mtdblock14" to create the filesystem. I tried ext3 and it was freezing, and I think jffs2 will be the best solution, but we odn't have the binaries to make it. Anyone can help here?
4. Use "mkdir /media/mtd14" to create a directory, will use it as a mount point.
5. Then, use "mount /dev/mtdblock14 /media/mtd14" to mount it.
6. Extract the ext2 tar image to the /media/mtd14 folder. For example: "tar xvf ext2.tar -C /media/mtd14". This will be aprox. 35 minutes.
7. When finished, for security, dismount the unit: "umount /media/mtd14".
8. turn off the netbook.
9. Create the new wmt_scriptcmd to set the new kernelargs variable. I will upload tomorrow the file, but for today:
setenv wmt.audio.i2s vt1603:f1:f2:ff:ff:<img src='http://www.slatedroid.com/public/style_emoticons/<#EMO_DIR#>/mega_shok.gif' class='bbc_emoticon' alt='80' />
setenv wmt.bus.i2c i2c0:1:1:i2c1:1:1
setenv wmt.gpo.cmos 1:0:7:D8110040:D8110080:D81100C0
setenv bootargs 'mem=214M root=/dev/mtdblock14 noinitrd rw rootfstype=ext2 console=ttyS0,115200n8 rootdelay=5'
setenv kernelargs setenv bootargs 'mem=214M root=/dev/mtdblock14 noinitrd rw rootfstype=ext2 console=ttyS0,115200n8 rootdelay=5'
saveenv
display init force
mmcinit 0
fatload mmc 0 0 uzImage.bin
textout -1 -1 \"Commands finished. Trying to boot...\" FFFFFF
bootm 0

I will try to load the kernel from the NAND tomorrow, but this will work.
8. Create the script and put it on the SD.
9. Turn on. the netbook will boot and probably freeze on the android logo. Try to wait 5 minutes, I dont know if it was booting or it was freeze. If it is freezed, just turn it off, take out the SD card, and turn on.

ENJOY!

EDIT 1: video:

Edited by netomx, 05 March 2012 - 01:06 AM.


#2 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 21 March 2012 - 03:22 PM

And it's really works?:)

#3 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 21 March 2012 - 03:58 PM

And it's really works?:)


yes, look at the YouTube video

#4 wicknix

wicknix

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 269 posts
  • LocationWisconsin, USA

Posted 21 March 2012 - 08:24 PM

Awesome! Hope you can figure out kernel/uboot now. I tinker when I have time but now that spring is here I won't have much time until fall to really dive back into it.

Sent from my MB502 using Tapatalk
Silence is golden, but duct tape is silver...

#5 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 22 March 2012 - 01:45 AM

I think, I'll continue my work about creating linux(debian or ubuntu) firmware for wm8650.
And the wmt_scriptcmd must be on the sd-card with kernel image?

#6 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 22 March 2012 - 10:07 AM

@wicknix
that's sad :(
in other things, well, I managed to boot entirely from NAND, but uboot cfg is hard.

@maestrodan
what are you trying to achieve?

#7 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 22 March 2012 - 12:59 PM

@netomx
I trying to make the firmware like uberoid(based on Ubuntu or Debian) for wm8650 devices. I think, it's will be great:)

#8 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 22 March 2012 - 01:05 PM

@netomx
I trying to make the firmware like uberoid(based on Ubuntu or Debian) for wm8650 devices. I think, it's will be great:)


Well, you want it automated? That sounds cool...

I wanted Debian on these netbooks, but the v4 of wicknix is having problems unmounting the drives at shutdown... Angstrom works fine but Debian seems faster.

#9 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 22 March 2012 - 01:55 PM

so it's need to have wmt_scriptcmd on sd card or no?

#10 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 22 March 2012 - 03:16 PM

Well, you want it automated? That sounds cool...

I wanted Debian on these netbooks, but the v4 of wicknix is having problems unmounting the drives at shutdown... Angstrom works fine but Debian seems faster.


I think Ubuntu is the best variant beacouse it has unity interface, and it's very good for tablets and netbooks with small screens.

#11 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 22 March 2012 - 04:46 PM

so it's need to have wmt_scriptcmd on sd card or no?


Nope, just for booting the 1st time, to erase the mtd11 partition, remake it, install the linux files, and then, the other time to modify the kernelargs. Next, you dont need it. Hablas espa├▒ol verdad?

#12 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 23 March 2012 - 02:22 AM

@netomx

I'm from Ukraine:)

#13 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 23 March 2012 - 11:02 AM

@netomx

I'm from Ukraine:)


Sorry, I thought that your username was "maestro dan", and it is spanish. Sorry!

#14 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 21 April 2012 - 12:51 PM

Hi, does everybody know something about partition table of wm8650 devices?

#15 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 21 April 2012 - 02:51 PM

Hi, does everybody know something about partition table of wm8650 devices?



cat /proc/mtd

#16 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 18 May 2012 - 02:46 PM

I have an interesting information
struct mtd_partition nand_partitions[] = {
{
.name = "w-load-NAND",
.offset = 0x00000000,
.size = 0x00020000,
},
{
.name = "u-boot env. cfg. 1-NAND",
.offset = MTDPART_OFS_APPEND,
.size = 0x00120000,
},
{
.name = "u-boot-NAND",
.offset = MTDPART_OFS_APPEND,
.size = 0x00120000,
},
{
.name = "kernel-NAND",
.offset = MTDPART_OFS_APPEND,
.size = 0x00800000,
},
{
.name = "initrd-NAND",
.offset = MTDPART_OFS_APPEND,
.size = 0x00580000,
},
{
.name = "filesystem-NAND",
.offset = MTDPART_OFS_APPEND,
.size = 0x10000000,
},
{
.name = "u-boot-logo",
.offset = MTDPART_OFS_APPEND,
.size = 0x200000,
},
{
.name = "kernel-logo",
.offset = MTDPART_OFS_APPEND,
.size = 0x400000,
},
{
.name = "android-data",
.offset = MTDPART_OFS_APPEND,
.size = 0x20000000,
},
{
.name = "android-cache",
.offset = MTDPART_OFS_APPEND,
.size = 0x8000000,
},
{
.name = "LocalDisk",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
},
};
maybe it can be userful

#17 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 19 May 2012 - 01:33 PM

@netomx
i tested your idea on debian-it's doesn't work. After extracting it's not boot.
maybe it's wrong wmt_scriptcmd file, i make it in gedit with default settings, you can download here your wmt_scriptcmd?
I think, it will be interestign idea, to make automated installer text file and it will be on the desktop, like "Install" in liveCD ubuntu.

Edited by maestrodan, 19 May 2012 - 01:49 PM.


#18 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 20 May 2012 - 03:35 PM

Ok can you tell me where did you get that worked?

#19 maestrodan

maestrodan

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 38 posts

Posted 21 May 2012 - 05:58 AM

i think, its wrong wmt_scriptcmd, made by me in gedit. Please, download here your wmt_scriptcmd

#20 netomx

netomx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 35 posts

Posted 21 May 2012 - 10:52 PM

i think, its wrong wmt_scriptcmd, made by me in gedit. Please, download here your wmt_scriptcmd


Sorry, this is the good one:

setenv bootargs 'mem=214M root=/dev/mtdblock14 noinitrd rw rootfstype=ext2 console=ttyS0,115200n8 rootwait'
setenv kernelargs 'mem=214M root=/dev/mtdblock14 noinitrd rw rootfstype=ext2 console=ttyS0,115200n8 rootwait'
saveenv
display init force
mmcinit 0
fatload mmc 0 0 uzImage.bin
textout -1 -1 \"Commands finished. Trying to boot...\" FFFFFF
bootm 0

Remember, this is if you have Linux already on mtdblock14. If you don't, change root line in the bootargs to "root=/dev/mmcblk0p2" if you got it on the 2nd partition of the SD.