Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # NAS Status: Booted into debian, buffalo kernel
- # Goal: Real kernel with brains!
- # Everything below as root, make sure we are in ~/
- # ---
- # Thanks hato! He put the patch file together, and created the .config file for you to build on
- # Special credits go to Phil Sutter (TDMA support for CESA engine) - included in the patch
- # ---
- # NOTE:
- # Quote hato:
- # "Please remember to warn the audience the kernel configuration still uses
- # built-in (default) kernel command line, if you haven't change that setting."
- #
- # under "BOOT OPTIONS", line 403:
- # CONFIG_CMDLINE="loglevel=7 root=/dev/sda2 rw initrd=0x00800040,12M
- # netconsole=6665@192.168.1.2/eth0,6666@192.168.1.24/00:1e:c2:be:47:18"
- # If you don't know what this means, ignore this and continue below
- # ---
- # NOTE2:
- # After kernel compilation, do NOT INSTALL BSTOOLS! This WILL brick your NAS, and you
- # have to start over with TFTP
- # As of 2013-03-21, I have no idea how to get the powerswitch to work.
- # If you wish to shutdown the NAS with this kernel (and .config and patch):
- # Put powerswitch on back of NAS to 'OFF'
- # Login as root
- # reboot
- # This will power down the NAS.
- # ---
- apt-get update
- apt-get install build-essential fakeroot uboot-mkimage debhelper python libncurses5-dev screen
- screen # Press space or enter to continue
- # We are now using screen. This utility gives us some advantages. Everything we do inside this 'screen'
- # will be saved, even if we loose connection between you and the host (in this case the NAS).
- # Also, the compiling takes a long time. With this tool, we can detach the console and close our ssh
- # client.
- # To detach: press CTRL + A, followed by CTRL + D. To re-attach the screen, enter 'screen -r'
- # We need to download two files. First the config file
- wget http://http://members.ziggo.nl/roodgoudzilver/lswvl/kernel/lswvl_config_by_hato.config
- # Now we have to download the patch. There are two different patches. One for devices with NAND, and one
- # for devices without NAND. If you bought your NAS with drives, you do NOT have NAND. If you bought
- # your NAS without drives, you DO have NAND. Download and apply only ONE patch.
- # With NAND
- wget http://http://members.ziggo.nl/roodgoudzilver/lswvl/kernel/lswvl_support_and_mv-cesa_dma_3.8_nand_native.patch
- # Without NAND
- wget http://http://members.ziggo.nl/roodgoudzilver/lswvl/kernel/lswvl_support_and_mv-cesa_dma_3.8_nonand_native.patch
- # If you are cross compiling, you can download these patches:
- # With NAND
- wget http://http://members.ziggo.nl/roodgoudzilver/lswvl/kernel/lswvl_support_and_mv-cesa_dma_3.8_nand_cross.patch
- # Without NAND
- wget http://http://members.ziggo.nl/roodgoudzilver/lswvl/kernel/lswvl_support_and_mv-cesa_dma_3.8_nonand_cross.patch
- cd /usr/src
- wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.3.tar.bz2
- tar xjf linux-3.8.3.tar.bz2
- ln -s linux-3.8.3 linux
- cd linux
- patch -Np1 --dry-run -i ~/lswvl_support_and_mv-cesa_dma_3.8*.patch # Dry-run the patch. No errors?
- # Continue!
- patch -Np1 -i ~/lswvl_support_and_mv-cesa_dma_3.8*.patch # Apply the patch
- cp ~/lswvl_config_by_hato.config ./.config
- # The .config has netconsole enabled. Google it, it's very useful.
- # Edit the .config file, go to line 403.
- # Change the following:
- # 192.168.1.2 - IP of the NAS
- # 192.168.1.24 - IP of the target machine (who is displaying the bootlog)
- # 00:1e:c2:be:47:18 - Mac address of the ethernet card of the target machine
- nano .config
- # Save and quit
- # If you want to alter the kernel (You can try this config first, if it works you can recompile the kernel
- # with this guide and make modifications with menuconfig. This way you know
- # where it went wrong if it's not working)
- make menuconfig
- # Compile the kernel
- make uImage modules # This will take a LONG time
- cp arch/arm/boot/uImage uImage.buffalo.debian # This is very quick
- make modules_install INSTALL_MOD_PATH=./modules # This is quick
- # Install kernel
- mount -o remount,rw /boot # Remount /boot as readwrite
- mv /boot/uImage.buffalo /boot/uImage.buffalo.old # Make backup of stock kernel
- cp uImage.buffalo.debian /boot/uImage.buffalo # Copy kernel
- # Copy modules
- cp -a modules/lib/modules/3.8.3 /lib/modules
- # Now the kernel is installed. As stated before, the kernel supports netconsole. Start
- # a netcat client on the target computer. Depending on your client you either have to start
- # it with:
- # nc -u -l 6666
- # or
- # nc -u -l -p 6666
- reboot # AND PRAY!
- # As soon as the blinking light on the NAS goes solid, you should see a bootlog coming up on
- # your netcat. If it doesn't show any (significant) errors, you should be good to go.
- # Here is an example bootlog of a succesfull boot: http://pastebin.com/0wNJn1vB
- # Try to ssh to your NAS and see if it works. If you can login, check
- uname -all
- # to see if you are running a 3.8.3 kernel
- # Update 2013-04-13: To get your fan control back, go here: http://pastebin.com/ch7TuxED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement