[Mipsbook-devel] Bootstrapping a Debian Lenny rootfs for the 2.6 kernel

Dr. H. Nikolaus Schaller hns at computer.org
Sat May 1 12:34:21 CEST 2010


Hi Ruben,

Am 01.05.2010 um 11:54 schrieb Ruben Viets:

> Hi Nikolaus,
>
> The udev and zd1211-firmware are part of debian lenny packages.  
> Downloadable below.

>
> http://packages.debian.org/lenny/udev
> http://packages.debian.org/source/lenny/zd1211-firmware
>
> Easier way would be to use:
> apt-get install udev zd1211-firmware (You should attach a ethernet  
> cable, then ;-))


Ah! I had thought that udev already had been installed by  
debootstrap... Sometimes things are much easier than one thinks :)

>

>
> You really need some expert from skytone to fix the sources for  
> below issues. Not me ;-)

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...

>  - For the sound. ak4642en and jz_i2s.c, you need to change the  
> sources manually, check my previous mail.
>
> - For rtc you can disable the option to startup/reset the rtc  
> everytime for boot in the kernel make xconfig.

Or look what the error means... Basically I am doing all this to learn  
Kernel hacking and debugging :)

>  - 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.
>
> - 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).

I have not seen that yet - maybe it is a problem with the HSYNC timing  
not 100% in line with the LCD specs.

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.

BR,
Nikolaus

> Grt Ruben.
>
>
>
>
> > CC: mipsbook-devel at linuxtogo.org
> > From: hns at computer.org
> > To: r_viets at hotmail.com
> > Subject: Re: [Mipsbook-devel] Bootstrapping a Debian Lenny rootfs  
> for the 2.6 kernel
> > Date: Fri, 30 Apr 2010 19:25:52 +0200
> >
> > Hi Ruben,
> >
> > Am 30.04.2010 um 14:53 schrieb Dr. H. Nikolaus Schaller:
> >
> > > Now, the next steps are to fix the chroot /lenny and populate with
> > > more configuration (e.g. copy /etc/fstab, /etc/network/interfaces
> > > etc.) and applications (e.g. apt-get usbutils), WiFi firmware etc.
> > >
> > > Finally, it should be possible to copy all files from /lenny to /
> > > (after making a .tbz or .img and/or on a second SD card) and boot
> > > that.
> >
> > My config now boots with a console login. I have attached the dmesg.
> > Of course, there are still some misconfigs to iron out.
> >
> > Now, I want to try to get WiFi working. For that I need some more
> > hints because I have no experience in installing that myself (I  
> always
> > had Linux systems where that was pre-installed)
> >
> > > a) udev install
> >
> > What do I need to download/install here?
> >
> > > b) zd1211-firmware install
> >
> > Where can I get that from?
> >
> > > c) may need to update/reinstall wpa_supplicant (you need one  
> without
> > > the compiled zydas driver, this only worked for kernel 2.4)
> >
> > Ok.
> >
> > > d) reconfigure /etc/wpa_supplicant.conf with the correct security
> > > encryption.
> >
> > Ok.
> >
> > > e) For easy use also add the /etc/network/interfaces and add the
> > > eth1 (or wifi, whatever you want to name it)
> >
> > That is already part of the network/interfaces (I think it was
> > imported by debootstrap)
> >
> > BR,
> > Nikolaus
> >
> > Excerpts from dmesg:
> >
> > Creating 5 MTD partitions on "NAND 1GiB 3,3V 8-bit":
> > 0x00000000-0x00100000 : "bootloader partition"
> > 0x00100000-0x00400000 : "kernel partition"
> > 0x00400000-0x00500000 : "mac partition"
> > 0x00500000-0x00a00000 : "mini rootfs partition"
> > 0x00a00000-0x40000000 : "yaffs2 rootfs partition"
> >
> > indicates that we could flash the bootloader, kernel and rootfs  
> from a
> > system installed on SD card.
> >
> > Here is another section that indicates a problem:
> >
> > drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
> > ---> ak4642en initialization!
> > Write I2C device 0x13 failed.
> > Write I2C device 0x13 failed.
> > Write I2C device 0x13 failed.
> > Write I2C device 0x13 failed.
> > Write I2C device 0x13 failed.
> > JzSOC On-Chip I2S controller registered (DAC: DMA(play):2/IRQ34,
> >
> > Then the RTC
> >
> > drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> >
> > And finally, it tries to ifup eth0 (but I had no cable attached)
> >
> > eth0: JZ On-Chip ethernet (MAC 00:ef:a3:c1:00:03, IRQ 19)
> > eth0: Found 1 PHY on JZ MAC
> > eth0: Ethernet Module AutoNegotiation failed
> > eth0: Provide Modes: (1)10BaseT-HD (2)10BaseT-FD (3)100baseTx-HD
> > (4)100baseTx-FD
> > eth0: Ethernet Link offline!
> >
> >
>
> New Windows 7: Simplify what you do everyday. Find the right PC for  
> you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxtogo.org/pipermail/mipsbook-devel/attachments/20100501/024859ef/attachment.htm>


More information about the Mipsbook-devel mailing list