User: Dclark/QuickLemoteDocDump
Kernel
Currently, it is based on linux-2.6.27.1 stable
Source from Lemote
The kernel source is managed by git:
You can look at available versions/tags at:
And then get the one you want via for example:
aria2c "http://dev.lemote.com/git?p=linux_loongson.git;a=snapshot;h=4ded0d031edf0af25fd22261ce89a83a1d2cc858;sf=tgz"
NOTE: It's *much* faster if you do this from a GNAPS machine and then scp it to the office.fsf.org network (aria2c was getting 1kb/sec from office.fsf.org but 700kb/sec from GNAPS)
The first drop version we got is up here: linux_loongson-4ded0d031edf0af25fd22261ce89a83a1d2cc858-linux-2.6.27-lemote-1.tar.gz.
Or figure out what this means and do it all via git:
- For downloading the kernel source, you can clone from ralf's git repos(tag linux-2.6.27.1), and just apply the patches from lemote's git://dev.lemote.com/linux_loongson.git
I think this would work, but didn't actually do this; used tarball method below. This git repo still being downloaded as I write this, and has been for more than 24h.
git clone git://dev.lemote.com/linux_loongson.git cd linux_loongson git-pull git-checkout -b linux-2.6.27-lemote-1 4ded0d031edf0af25fd22261ce89a83a1d2cc858 git pull --rebase
Default .config file
The default config file is in arch/mips/configs/ls2f_notebook_defconfig
Need to patch as and mips Makefile
I compiled without this and it seemed to work, but probably won't hurt... If you want to natively build the kernel and other modules in the Yeeloong mini-laptop, use the patched as. 1. Make a backup of /usr/bin/as 2. Replace /usr/bin/as with the one from the above link 3. Open arch/mips/Makefile, and find the following line:
core-$(CONFIG_MACH_LM2F) +=arch/mips/lemote/lm2f/common/
Add the following line below it:
cflags-$(CONFIG_MACH_LM2F) += -Wa,-mfix-gs2f-kernel -Wa,--no-warn
Fix for I/O resource not free on boot
If you get on boot:
ide_generic I/O resource 0x1F0-0x1F7 not free ide_generic I/O resource 0x170-0x177 not free
It does not reserve the io resource 0x1F0~1F7, when the ide module request this resource, it complaimed. This should not affect the functions.
It will be fixupped as following: do not choose the option (in "make menuconfig"):
Device drivers->ATA/ATAPI/MFM/RLL support->generic/default IDE chipset support
Recompile kernel and run it will ok.
Fix for no /proc/apm
Updated rtl8187b wireless driver
The rtl8187b wireless driver is not in the git yet. Here are the driver source and binary modules provided via email from Lemote. The rtl8187b driver source is provided by Realtek. Lemote has fixed some bugs.
Note: this is sort of messy - the Makefile assumes it's compiling for the running kernel, and some other scripts copy stuff into /etc directly.
TUN/TAP Support
make menuconfig Device drivers > Network device support > Universal TUN/TAP device driver support. make modules
Binaries from Lemote
Lemote sent us kernel-binary-1118.tar.gz which is a binary compile of the 2.6.27.1 kernel and modules (and it looks like the updated rtl drivers, but haven't confirmed that yet).
tar xzf kernel-binary-1118.tar.gz -C /
After that, the kernel is in /boot/vmlinux
Fix for no /proc/apm / power management / battery gauge
There are some lost ec-modules.
1. Get ec-module.tar.gz 2. Extract and put the modules under "ec-bin/char_27" 3. Do this:
cd /lib/modules/2.6.27.1 depmod shutdown -r now