Advertisement
Guest User

Untitled

a guest
Nov 12th, 2013
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. FriendlyArm have provided an ubuntu image and tools on the ftp site, it works with the rootfs via an ext4 partition on an SD card.
  2.  
  3.  
  4. == Things you will need ==
  5.  
  6. * Ubuntu downloads from the friendlyArm ftp site so you have the desktop or server rootfs archive.
  7. * mktools from one of the dvd images
  8. * mini210S
  9. * serial console access to the mini (for giggles)
  10. * network connection
  11. * 4GB micro SD card, already fused with SD-Flasher.exe and an ext4 partition added to it, doesn't matter too much how big the fat partition is, just make sure the ext4 partition is a couple of GB.
  12.  
  13.  
  14. == Make sure you've got superboot on the SD card ==
  15.  
  16. If you haven't burnt superboot.bin to your SD card, [http://armworks.cc/index.php?title=Mini210S_Burn_rootfs_to_Nand#Burning_Superboot_to_the_SD_card follow the section in this link for information on how to do that] and remember to backup the SD card before you start as it will destroy all of your data.
  17.  
  18. For the ext4 partition you will need to use a disk resizing app. like gparted on a linux machine. When you open gparted and look at your SD card, you'll notice that there is 151MB of unallocated space, this is where superboot is, so don't touch it, it's supposed to be there!!
  19.  
  20. In gparted, resize the fat partition that you made, it doesn't matter too much how big it is, I made mine 512MB so I can mess with other stuff on the card at a later date, using gparted, I had to click on the green tick to actually resize the fat partition before it would let me partition the rest of the sd card.
  21.  
  22. Once you've resized the fat partition, you can format the unallocated space that is freed up by the resizing, it's easiest to just right click on the unallocated space to the right of the fat partition, choose new partition and then set the filesystem to ext4, click add and then click the green tick to execute the changes.
  23.  
  24. That's it for the SD card, you can now move onto the next sections.
  25.  
  26. == Unpack and prepare your Image ==
  27.  
  28. First off we need to unpack our rootfs archive, I'll be using the ubuntu-desktop-1204_20120628.tgz file, open a command prompt browse to wherever you downloaded the rootfs and the images_18714.rar files to and do:
  29.  
  30. sudo tar -xvzf ubuntu-desktop-1204_20120628.tgz
  31.  
  32. That will keep the permissions intact, and unpack the archive into a folder called ubuntu-desktop, now we need to copy them to the ext4 partition, so put your uSD card in a reader and plug it into your PC, you will need to know the path to the ext4 partition on your SD card.
  33.  
  34. sudo cp -varP ubuntu-desktop/* <path to ext4 partition>
  35.  
  36. It will take a while, once it's finished,
  37.  
  38. Next you'll need to unpack the the images folder and copy that to your fat partition on the sd card, so do:
  39.  
  40. rar x images_18714.rar
  41. cp -varP images/ <path to fat partition>
  42.  
  43. == Edit all of the things ==
  44. Next you'll need to edit a couple of files, otherwise you won't be able to sudo from the serial console and you'll miss out on all the universe repo goodies!!
  45.  
  46. you'll need root privs. to open these files, from the ext4 partition, edit /etc/sudoers, scroll down to line 19 and add a line to make it look like this:
  47.  
  48. # User privilege specification
  49. root ALL=(ALL:ALL) ALL
  50. fa ALL=(ALL:ALL) ALL
  51.  
  52. Save and exit the file. fa is the username and password to logon to the system (I think!! there might be others, it auto logs you in and serial console won't let you use root!!) so adding it to sudoers gives us root privs when we need them.
  53.  
  54. Next we need to edit /etc/apt/sources.list, scroll down to line 15, we're going to uncomment the 4 deb/deb-src lines, this will give us access to all the useful universal tools from the ubuntu repos, so uncomment the lines so it looks like this:
  55.  
  56. ## Uncomment the following two lines to add software from the 'universe'
  57. ## repository.
  58. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  59. ## team. Also, please note that software in universe WILL NOT receive any
  60. ## review or updates from the Ubuntu security team.
  61. deb http://ports.ubuntu.com/ubuntu-ports/ precise universe
  62. deb-src http://ports.ubuntu.com/ubuntu-ports/ precise universe
  63. deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates universe
  64. deb-src http://ports.ubuntu.com/ubuntu-ports/ precise-updates universe
  65.  
  66. Once you've saved and exited we need to edit a file on the fat partition, in /images/ you'll find a file called FriendlyARM.ini, open it in your favourite editor, you should be ok with the defaults but I like to change the StatusType to the following:
  67.  
  68. StatusType = LED
  69.  
  70. I hate it when the mini210S screams at me when *it* did something wrong.
  71.  
  72. == Burn the kernel then run Ubuntu ==
  73.  
  74. Now that you've prepared the card you can safely remove it from your system and plug it into your mini210S, we're going to burn the kernel and superboot to nand, so flip your bootmode switch to SD and power on the mini210S, in about 10seconds it should be all over and you should be ready to boot.
  75.  
  76. Once it's finished burning the kernel, flip the bootmode switch back to nand, and toggle the power switch, that's pretty much it, if you have a serial console connected to con1 then you should see the usual junk flying past your screen and you will be presented with a login prompt at the serial console, on screen (mine is a H43 lcd) you should see the ubuntu desktop, as I mentioned, it automatically logs you into the desktop (unity sucks on a 4.3" screen), the touchscreen afaik isn't setup (or at least not enough to work but it did seem to be detected at least) so you'll want a usb hub, mouse and keyboard.
  77.  
  78. From the serial console I would suggest doing sudo apt-get update and then you can go and hunt down any of your favourite apps and install them. That's about it, have fun!
  79.  
  80.  
  81. == Issues ==
  82.  
  83. You will see 3 errors at least on your travels :
  84. mountall: Event failed
  85. init: Failed to create pty - disabling logging for job implemented
  86. sudo: unable to resolve host localhost.localdomain
  87.  
  88. mountall probably gimps out because something it wants doesn't exist, no idea what though, failed to create pty is alledgedly to do with something that, again, doesn't exist when init starts logging and sudo is a host thing, just needs setting accordingly somewhere.
  89.  
  90. If anyone fixes these issues before i do, post the fix here!!
  91.  
  92. For the touch screen, you'll probably want to apt-get install libts, and probably the x11 stuff for it too, you'll also probably need /etc/friendlyarm-ts-input.conf from maybe the linux 2.6.35 image, and etc/ts.conf(should be installed with libts I think but it'll need to be edited to look like the one in linux image)
  93.  
  94. == update ==
  95. After translating the ubuntu readme, it seems that there are a number of other issues, touchscreen is not supported (yet) and the multimedia system (hardware codecs etc.) are all turned off!
  96.  
  97. There is a fix for the pty issue and it's pretty simple too, from a command prompt on the mini210S, do:
  98. wget https://launchpad.net/ubuntu/+source/upstart/1.5-0ubuntu8/+build/3710339/+files/upstart_1.5-0ubuntu8_armhf.deb --no-check-certificate
  99. dpkg -i upstart_1.5-0ubuntu8_armhf.deb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement