Howto boot Linux

From t-hack.com - Hack X300T / X301T

Revision as of 17:56, 3 October 2009 by Silicium (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Requirements:

  *  working JTAG interface or a working modchip
  *  working Serial connection, 115200 8n1 or use the "Compiled-in Kernel Boot Parameter"(the lazy way without a yamon/serial connection)


ok, lets start.
First download the Yamon boot image from here and the Linux boot image from here.
extract both files to the first partition of the x300t hard disk (either upload it with FTP or connect the drive to a PC).
now grab the latest x300t patch tool from here
(note: there are some Bugs in the Linux version, apply this patch - Silicium)
use the patch tool as usual, but add the /yamon parameter when starting the tool. as soon as you press the OK button of the x300t you should see the YAMON prompt in the terminal window.
the YAMON is required just once to set the Linux kernel parameter
use the setxenv command to display the current xenv parameters.
usually there should not be a parameter "a.linux_cmd" .. so we have to create one like this
setxenv a.linux_cmd "console=ttyS0 root=/dev/hda3"
this command will write the new parameter to the flash.
now reboot the x300t and use the patch too again, but now add the /linux parameter when starting.
after some seconds you should the the Linux Kernel booting up.
please note that you need a Linux root partition on a NFS share, USB stick or hard disk to really use the Linux.

Known Problems
compile errors at Linux: Make sure to apply the Linux fix to compile it with gcc

Failed to lock /dev/parport0: No such device or address:
You should remove the "lp" (lineprinter) module from the kernel with the command: 
rmmod lp