Kuzma
Help with mariadb installation 1 March 03, 2018 07:12AM |
Re: Linux Kernel 4.15.2 Kirkwood package and Debian rootfs March 03, 2018 01:57PM |
Registered: 7 years ago Posts: 11 |
Kuzma
Re: Linux Kernel 4.15.2 Kirkwood package and Debian rootfs March 03, 2018 05:16PM |
Re: Help with mariadb installation 1 March 04, 2018 01:37AM |
Registered: 7 years ago Posts: 11 |
Kuzma
Re: Help with mariadb installation 1 March 06, 2018 11:49AM |
root@GoFlexHome:/boot# mv uImage uImage.orig root@GoFlexHome:/boot# cp -a zImage-4.15.2-kirkwood-tld-1 zImage.fdt root@GoFlexHome:/boot# cat dts/kirkwood-goflexhome.dtb >> zImage.fdt root@GoFlexHome:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.15.2-kirkwood-tld-1 -d zImage.fdt uImage Image Name: Linux-4.15.2-kirkwood-tld-1 Created: Thu Nov 3 17:32:31 2016 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3936225 Bytes = 3843.97 kB = 3.75 MB Load Address: 00008000 Entry Point: 00008000 root@GoFlexHome:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.15.2-kirkwood-tld-1 -d initrd.img-4.15.2-kirkwood-tld-1 uInitrd mkimage: Can't open initrd.img-4.15.2-kirkwood-tld-1: No such file or directory
Re: Help with mariadb installation 1 March 06, 2018 02:52PM |
Registered: 7 years ago Posts: 11 |
Re: Help with mariadb installation 1 March 06, 2018 05:15PM |
Admin Registered: 14 years ago Posts: 19,529 |
Quote
Updated 11 Feb 2018:
Kernel linux-4.15.2-kirkwood-tld-1 package has been uploaded. The following features were added/updated:
- Added HP T5325 flash type mx25l8005.
- Added USBIP supports.
Latest Linux kernel 4.x general release information can be found at:
LinuxChanges log
Download at Dropbox:
linux-4.15.2-kirkwood-tld-1-bodhi.tar.bz2
md5
11f4c87ffb53b5adfd0a5405fc1ba247
sha256
90c3fd5f6a0628dfbde1403ae43ab4625688350435dec95eab08b95f7a43cfc8
This tarball contains 6 files:
Quote
linux-image-4.15.2-kirkwood-tld-1_1.0_armel.deb
linux-headers-4.15.2-kirkwood-tld-1_1.0_armel.deb
config-4.15.2-kirkwood-tld-1
zImage-4.15.2-kirkwood-tld-1
linux-dtb-4.15.2-kirkwood-tld-1.tar
linux-4.15.2-kirkwood-tld-1.patch
And as always, please verify the hash of what you've downloaded!
Installation:
1. Backup your current uImage and uInitrd. In the /boot directory, these are files for your current kernel (xx.xx.xx is the version number):
uInitrd
uImage
initrd.img-xx.xx.xx-kirkwood-xxx
System.map-xx.xx.xx-kirkwood-xxx
vmlinuz-xx.xx.xx-kirkwood-xxx
config-xx.xx.xx-kirkwood-xxx
dts/
2. Extract the kernel and the DTB files in the archive:
cd /boot
tar -xjf linux-4.15.2-kirkwood-tld-1-bodhi.tar.bz2
tar -xf linux-dtb-4.15.2-kirkwood-tld-1.tar
3. And install it with dpkg. Remove flash-kernel first to avoid potential problem (It is much better to generate uImage and uInitrd manually anyway):
cd /boot
apt-get remove flash-kernel
dpkg -i linux-image-4.15.2-kirkwood-tld-1_1.0_armel.deb
4. Create uImage and uInitrd and setup for booting.
I'm using the GoFlex Net booting with USB drive as an example here. Please replace its name (kirkwood-goflexnet.dtb) with the box you are installing on (for example, kirkwood-pogo_e02.dtb). Please look inside /boot/dts/ for the correct DTB file name for your box.
Below are the 2 different alternatives in booting (method 4b is required for booting with older U-Boot that does not support FDT).
- Choose option 4a if you are going to use the current rootfs for many different Kirkwood boxes, as is. It should boot most of the Kirkwood boxes. And with the latest U-Boot for Kirkwood that suports FDT. This is the preferred method.
- Choose option 4b if you only use the current rootfs for the box you're installing on, and don't want to modify u-boot envs. This method is required for booting with older U-Boot that does not support FDT. Note that if you are installing from stock OS, u-boot envs must be modified to boot with USB or HDD (please post questions, since each box has a different flavor in setting up the envs).
4a. Boot with DTB file (standard way to boot FDT kernel). Recommended.
- Generate the uImage and uInitrd.
cd /boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.15.2-kirkwood-tld-1 -d vmlinuz-4.15.2-kirkwood-tld-1 uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.15.2-kirkwood-tld-1 -d initrd.img-4.15.2-kirkwood-tld-1 uInitrd
- Set U-Boot envs for booting. The u-boot envs below are for 1st time upgrading, you don't need to do this step if you've installed the latest U-Boot for Kirkwood. Or you are upgrading from my previous released kernel. Just make sure the DTB file is the correct one for your box, replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb'
fw_setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
fw_setenv usb_boot 'run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD)
Again, please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
Generate the uImage and uInitrd:
cd /boot
mv uImage uImage.orig
cp -a zImage-4.15.2-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.15.2-kirkwood-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.15.2-kirkwood-tld-1 -d initrd.img-4.15.2-kirkwood-tld-1 uInitrd
5. The new uImage and uInitrd files should be created in /boot directory now. You're ready to reboot the system:
sync
sync
sync
shutdown -r now
Kuzma
Re: Help with mariadb installation 1 March 09, 2018 04:28AM |
kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.goflexhome.mtd0.kwb -p setenv ipaddr 192.168.0.109 setenv serverip 192.168.0.101 tftpboot 0x800000 uboot.2017.07-tld-1.goflexhome.mtd0.kwb nand erase 0x0 0x80000 nand write.e 0x800000 0x0 0x80000 reset
GoFlexHome> printenv arcNumber=3338 baudrate=115200 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) init=/bin/systemd bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3 bootdelay=4 bootdev=usb console=console=ttyS0,115200 device=0:1 devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-goflexhome.dtb ethact=egiga0 ethaddr=00:10:75:2a:2e:86 if_netconsole=ping $serverip ipaddr=192.168.0.110 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.103 start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_ready_retry=15 Environment size: 2941/131068 bytes GoFlexHome> reset
# sdc1 formated in ext4 cd /mnt/sdc1 tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 cat <<END > /media/sdb1/etc/fstab LABEL=rootfs / ext4 noatime,errors=remount-ro 0 1 END
cd /boot tar -xjf linux-4.15.2-kirkwood-tld-1-bodhi.tar.bz2 tar -xf linux-dtb-4.15.2-kirkwood-tld-1.tar apt-get remove flash-kernel dpkg -i linux-image-4.15.2-kirkwood-tld-1_1.0_armel.deb mv uImage uImage.orig cp -a zImage-4.15.2-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-goflexhome.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.15.2-kirkwood-tld-1 -d zImage.fdt uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.15.2-kirkwood-tld-1 -d initrd.img-4.15.2-kirkwood-tld-1 uInitrd sync sync sync shutdown -r now
Re: Help with mariadb installation 1 March 09, 2018 05:13AM |
Registered: 7 years ago Posts: 11 |
Re: Help with mariadb installation 1 March 09, 2018 05:21AM |
Admin Registered: 14 years ago Posts: 19,529 |
Re: Help with mariadb installation 1 March 09, 2018 05:30AM |
Admin Registered: 14 years ago Posts: 19,529 |
> kwboot -t -B 115200 /dev/ttyUSB0 -b > uboot.2017.07-tld-1.goflexhome.mtd0.kwb -p > setenv ipaddr 192.168.0.109 > setenv serverip 192.168.0.101 > tftpboot 0x800000 > uboot.2017.07-tld-1.goflexhome.mtd0.kwb > nand erase 0x0 0x80000 > nand write.e 0x800000 0x0 0x80000 > reset >
> mv uImage uImage.orig > cp -a zImage-4.15.2-kirkwood-tld-1 zImage.fdt > cat dts/kirkwood-goflexhome.dtb >> zImage.fdt > mkimage -A arm -O linux -T kernel -C none -a > 0x00008000 -e 0x00008000 -n > Linux-4.15.2-kirkwood-tld-1 -d zImage.fdt uImage > mkimage -A arm -O linux -T ramdisk -C gzip -a > 0x00000000 -e 0x00000000 -n > initramfs-4.15.2-kirkwood-tld-1 -d > initrd.img-4.15.2-kirkwood-tld-1 uInitrd
cp -a uImage.orig uImage sync sync
Kuzma
Re: Help with mariadb installation 1 January 11, 2019 01:00PM |
Re: Help with mariadb installation 1 September 01, 2021 08:29PM |
Registered: 7 years ago Posts: 13 |