Howto boot Linux
From t-hack.com - Hack X300T / X301T
m |
|||
Line 1: | Line 1: | ||
Requirements: | Requirements: | ||
* working JTAG interface <u>'''or'''</u> a working modchip | * working JTAG interface <u>'''or'''</u> a working modchip | ||
− | * working Serial connection, 115200 8n1 <u>'''or'''</u> "Compiled-in Kernel Boot Parameter" (the lazy way without yamon/serial connection | + | * working Serial connection, 115200 8n1 <u>'''or'''</u> use the "Compiled-in Kernel Boot Parameter"(the lazy way without a yamon/serial connection) |
− | + | <br> | |
ok, lets start. | ok, lets start. | ||
− | + | <br> | |
First download the Yamon boot image from '''[[Media:Ya.zip|here]]''' and the Linux boot image from '''[[Media:Lx.zip|here]]'''. | First download the Yamon boot image from '''[[Media:Ya.zip|here]]''' and the Linux boot image from '''[[Media:Lx.zip|here]]'''. | ||
− | + | <br> | |
− | extract both files to the first partition of the x300t hard disk | + | extract both files to the first partition of the x300t hard disk (either upload it with FTP or connect the drive to a PC). |
− | + | <br> | |
− | now grab the latest x300t patch tool from '''[[Media:X300tpatch3.zip|here]]''' | + | now grab the latest x300t patch tool from '''[[Media:X300tpatch3.zip|here]]'''<br> |
− | + | ''(note: there are some Bugs in the Linux version, apply this [[Media:X300tpatchv3-linux-patch.diff.bz2|patch]] - Silicium)'' | |
+ | <br> | ||
use the patch tool as usual, but add the /yamon parameter when starting the tool. | 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. | as soon as you press the OK button of the x300t you should see the YAMON prompt in the terminal window. | ||
− | + | <br> | |
− | the YAMON is | + | the YAMON is required just once to set the Linux kernel parameter |
− | + | <br> | |
use the setxenv command to display the current xenv parameters. | use the setxenv command to display the current xenv parameters. | ||
− | + | <br> | |
usually there should not be a parameter "a.linux_cmd" .. so we have to create one like this | usually there should not be a parameter "a.linux_cmd" .. so we have to create one like this | ||
− | + | <br> | |
'''setxenv a.linux_cmd "console=ttyS0 root=/dev/hda3"''' | '''setxenv a.linux_cmd "console=ttyS0 root=/dev/hda3"''' | ||
− | + | <br> | |
this command will write the new parameter to the flash. | this command will write the new parameter to the flash. | ||
− | + | <br> | |
now reboot the x300t and use the patch too again, but now add the /linux parameter when starting. | now reboot the x300t and use the patch too again, but now add the /linux parameter when starting. | ||
− | + | <br> | |
after some seconds you should the the Linux Kernel booting up. | after some seconds you should the the Linux Kernel booting up. | ||
+ | <br> | ||
+ | please note that you need a Linux root partition on a NFS share, USB stick or hard disk to really use the Linux. | ||
+ | <br> | ||
+ | '''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'' | ||
− | + | ||
+ | [[category:Linux]][[category:Software]] |