1 May 2010 12:34
Re: Bootstrapping a Debian Lenny rootfs for the 2.6 kernel
Hi Ruben,
Sure. I think there is some activity on qi-hardware.com They use the same series of processors for the NanoNote and maybe we can copy some nice stuff...
Or look what the error means... Basically I am doing all this to learn Kernel hacking and debugging :)
I have not seen that yet - maybe it is a problem with the HSYNC timing not 100% in line with the LCD specs.
BR,
Am 01.05.2010 um 11:54 schrieb Ruben Viets:
Ah! I had thought that udev already had been installed by debootstrap... Sometimes things are much easier than one thinks :)
I have to add the above mentioned packages (plus some others) and then I can make the debian lenny rootfs available for easy download. Based on that, I hope there will be many differnt "Distributions" with a good selection of GUI and tools. E.g. upgrade to Ubuntu should become possible. Adding printer driver. Adding Browser, Mail, PIM etc. That is the good thing of a rock solid package base like Debian.
Nikolaus
<div>Hi Ruben,<div> <br><div> <div>Am 01.05.2010 um 11:54 schrieb Ruben Viets:</div> <br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span"><div class="hmmessage">Hi Nikolaus,<br> <br>The udev and zd1211-firmware are part of debian lenny packages. Downloadable below.<span class="Apple-converted-space"> </span><br> </div></span></blockquote> </div> <div><blockquote type="cite"><span class="Apple-style-span"><div class="hmmessage"> <br><a href="http://packages.debian.org/lenny/udev">http://packages.debian.org/lenny/udev</a><br><a href="http://packages.debian.org/source/lenny/zd1211-firmware">http://packages.debian.org/source/lenny/zd1211-firmware</a><br><br>Easier way would be to use:<br>apt-get install udev zd1211-firmware (You should attach a ethernet cable, then)</div></span></blockquote></div> <div><br></div> <div> <div>Ah! I had thought that udev already had been installed by debootstrap... Sometimes things are much easier than one thinks :)</div> <div> <br><blockquote type="cite"><span class="Apple-style-span"></span></blockquote> </div> </div> <div> <blockquote type="cite"><span class="Apple-style-span"><div class="hmmessage"> <br>You really need some expert from skytone to fix the sources for below issues. Not me
<br> </div></span></blockquote> <div><br></div>Sure. I think there is some activity on qi-hardware.com They use the same series of processors for the NanoNote and maybe we can copy some nice stuff...</div> <div> <br><blockquote type="cite"><span class="Apple-style-span"><div class="hmmessage"> - For the sound. ak4642en and jz_i2s.c, you need to change the sources manually, check my previous mail.<br> <br>- For rtc you can disable the option to startup/reset the rtc everytime for boot in the kernel make xconfig.<span class="Apple-converted-space"> </span><br> </div></span></blockquote> <div><br></div>Or look what the error means... Basically I am doing all this to learn Kernel hacking and debugging :)</div> <div> <br><blockquote type="cite"><span class="Apple-style-span"><div class="hmmessage"> - For the touchpad, there should be an easy way to connect the mice buttons to the GPIO. Otherwise just use a external mouse with scroll wheel.<br> <br>- LCD jumps to the right, I think the changes did for minibook33.patch are not alway's consistant with the modifications needed for skytone (trendtac minibook).<br> </div></span></blockquote> <div><br></div>I have not seen that yet - maybe it is a problem with the HSYNC timing not 100% in line with the LCD specs.</div> <div><br></div> <div>I have to add the above mentioned packages (plus some others) and then I can make the debian lenny rootfs available for easy download. Based on that, I hope there will be many differnt "Distributions" with a good selection of GUI and tools. E.g. upgrade to Ubuntu should become possible. Adding printer driver. Adding Browser, Mail, PIM etc. That is the good thing of a rock solid package base like Debian.</div> <div> <div><br></div>BR,</div> <div>Nikolaus</div> <div> <br><blockquote type="cite"><span class="Apple-style-span"><div class="hmmessage">Grt Ruben.<br> <br> <br> <br> <br>> CC:<span class="Apple-converted-space"> </span><a href="mailto:mipsbook-devel@...">mipsbook-devel@...</a><br>> From:<span class="Apple-converted-space"> </span><a href="mailto:hns@...">hns@...</a><br>> To:<span class="Apple-converted-space"> </span><a href="mailto:r_viets@...">r_viets@...</a><br>> Subject: Re: [Mipsbook-devel] Bootstrapping a Debian Lenny rootfs for the 2.6 kernel<br>> Date: Fri, 30 Apr 2010 19:25:52 +0200<br>><span class="Apple-converted-space"> </span><br>> Hi Ruben,<br>><span class="Apple-converted-space"> </span><br>> Am 30.04.2010 um 14:53 schrieb Dr. H. Nikolaus Schaller:<br>><span class="Apple-converted-space"> </span><br>> > Now, the next steps are to fix the chroot /lenny and populate with<span class="Apple-converted-space"> </span><br>> > more configuration (e.g. copy /etc/fstab, /etc/network/interfaces<span class="Apple-converted-space"> </span><br>> > etc.) and applications (e.g. apt-get usbutils), WiFi firmware etc.<br>> ><br>> > Finally, it should be possible to copy all files from /lenny to /<span class="Apple-converted-space"> </span><br>> > (after making a .tbz or .img and/or on a second SD card) and boot<span class="Apple-converted-space"> </span><br>> > that.<br>><span class="Apple-converted-space"> </span><br>> My config now boots with a console login. I have attached the dmesg.<span class="Apple-converted-space"> </span><br>> Of course, there are still some misconfigs to iron out.<br>><span class="Apple-converted-space"> </span><br>> Now, I want to try to get WiFi working. For that I need some more<span class="Apple-converted-space"> </span><br>> hints because I have no experience in installing that myself (I always<span class="Apple-converted-space"> </span><br>> had Linux systems where that was pre-installed)<br>><span class="Apple-converted-space"> </span><br>> > a) udev install<br>><span class="Apple-converted-space"> </span><br>> What do I need to download/install here?<br>><span class="Apple-converted-space"> </span><br>> > b) zd1211-firmware install<br>><span class="Apple-converted-space"> </span><br>> Where can I get that from?<br>><span class="Apple-converted-space"> </span><br>> > c) may need to update/reinstall wpa_supplicant (you need one without<span class="Apple-converted-space"> </span><br>> > the compiled zydas driver, this only worked for kernel 2.4)<br>><span class="Apple-converted-space"> </span><br>> Ok.<br>><span class="Apple-converted-space"> </span><br>> > d) reconfigure /etc/wpa_supplicant.conf with the correct security<span class="Apple-converted-space"> </span><br>> > encryption.<br>><span class="Apple-converted-space"> </span><br>> Ok.<br>><span class="Apple-converted-space"> </span><br>> > e) For easy use also add the /etc/network/interfaces and add the<span class="Apple-converted-space"> </span><br>> > eth1 (or wifi, whatever you want to name it)<br>><span class="Apple-converted-space"> </span><br>> That is already part of the network/interfaces (I think it was<span class="Apple-converted-space"> </span><br>> imported by debootstrap)<br>><span class="Apple-converted-space"> </span><br>> BR,<br>> Nikolaus<br>><span class="Apple-converted-space"> </span><br>> Excerpts from dmesg:<br>><span class="Apple-converted-space"> </span><br>> Creating 5 MTD partitions on "NAND 1GiB 3,3V 8-bit":<br>> 0x00000000-0x00100000 : "bootloader partition"<br>> 0x00100000-0x00400000 : "kernel partition"<br>> 0x00400000-0x00500000 : "mac partition"<br>> 0x00500000-0x00a00000 : "mini rootfs partition"<br>> 0x00a00000-0x40000000 : "yaffs2 rootfs partition"<br>><span class="Apple-converted-space"> </span><br>> indicates that we could flash the bootloader, kernel and rootfs from a<span class="Apple-converted-space"> </span><br>> system installed on SD card.<br>><span class="Apple-converted-space"> </span><br>> Here is another section that indicates a problem:<br>><span class="Apple-converted-space"> </span><br>> drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver<br>> ---> ak4642en initialization!<br>> Write I2C device 0x13 failed.<br>> Write I2C device 0x13 failed.<br>> Write I2C device 0x13 failed.<br>> Write I2C device 0x13 failed.<br>> Write I2C device 0x13 failed.<br>> JzSOC On-Chip I2S controller registered (DAC: DMA(play):2/IRQ34,<br>><span class="Apple-converted-space"> </span><br>> Then the RTC<br>><span class="Apple-converted-space"> </span><br>> drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<br>><span class="Apple-converted-space"> </span><br>> And finally, it tries to ifup eth0 (but I had no cable attached)<br>><span class="Apple-converted-space"> </span><br>> eth0: JZ On-Chip ethernet (MAC 00:ef:a3:c1:00:03, IRQ 19)<br>> eth0: Found 1 PHY on JZ MAC<br>> eth0: Ethernet Module AutoNegotiation failed<br>> eth0: Provide Modes: (1)10BaseT-HD (2)10BaseT-FD (3)100baseTx-HD<span class="Apple-converted-space"> </span><br>> (4)100baseTx-FD<br>> eth0: Ethernet Link offline!<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br><br>New Windows 7: Simplify what you do everyday.<span class="Apple-converted-space"> </span><a href="http://windows.microsoft.com/shop" target="_new">Find the right PC for you.</a> </div></span></blockquote> </div> <br> </div> </div>
)
RSS Feed