Re: Linux Kernel 4.0 (FDT) and 3.16 (non-FDT) Kirkwood package and rootfs May 06, 2015 03:36PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 (FDT) and 3.16 (non-FDT) Kirkwood package and rootfs May 07, 2015 01:53AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 (FDT) and 3.16 (non-FDT) Kirkwood package and rootfs May 08, 2015 06:01PM |
Registered: 9 years ago Posts: 429 |
Re: Linux Kernel 4.0 (FDT) and 3.16 (non-FDT) Kirkwood package and rootfs May 08, 2015 06:29PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs May 22, 2015 09:55AM |
Registered: 9 years ago Posts: 2 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs May 22, 2015 03:38PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs May 27, 2015 08:23AM |
Registered: 10 years ago Posts: 17 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs May 27, 2015 03:34PM |
Admin Registered: 13 years ago Posts: 19,102 |
Please help to check my uboot env setting June 07, 2015 09:00PM |
Registered: 10 years ago Posts: 12 |
arcNumber=3542 baudrate=115200 bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=00:25:31:00:A6:8F if_netconsole=ping $serverip ipaddr=192.168.1.18 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=ext4load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb load_initrd=ext4load usb 0:1 0x1100000 /boot/uInitrd load_uimage=ext4load usb 0:1 0x800000 /boot/uImage machid=dd6 mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 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 rootdelay=10 rootfstype=ext4 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 serverip=192.168.1.15 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi usb_init=usb start usb_load_uimage=ext4load usb 0:1 0x800000 /boot/uImage usb_load_uinitrd=ext4load usb 0:1 0x1100000 /boot/uInitrd usb_root=LABEL=rootfs
[ 3.234420] Waiting 10 sec before mounting root device... [ 13.240867] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6 [ 13.248212] Please append a correct "root=" boot option; here are the available partitions: [ 13.256658] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
sudo su cd /media/rootfs tar -xjf /path/to/Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi.tar.bz2 cd boot cp -a zImage-3.18.5-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-pogo_e02.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.18.5-kirkwood-tld-1 -d initrd.img-3.18.5-kirkwood-tld-1 uInitrd sync
Re: Please help to check my uboot env setting June 07, 2015 09:28PM |
Admin Registered: 13 years ago Posts: 19,102 |
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
Re: Please help to check my uboot env setting June 08, 2015 08:02PM |
Registered: 10 years ago Posts: 12 |
> usb_boot=run load_dtb; run load_uimage; if run > load_initrd; then bootm 0x800000 0x1100000 > 0x1c00000; else bootm 0x800000 - 0x1c00000; fi >
setenv usb_boot 'mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi'
leo
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 09, 2015 05:14PM |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 10, 2015 12:03AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 10, 2015 08:50AM |
Registered: 11 years ago Posts: 91 |
/* The following pins are currently not assigned to a driver, some of them should be configured as inputs. pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act &pmx_htp &pmx_vid_b1 &pmx_power_resume_data &pmx_power_resume_clk>; */
static struct nsa3xx_hwmon_platform_data nsa320_hwmon_data = { /* GPIOs connected to Holtek HT46R065 MCU */ .act_pin = 17, .clk_pin = 16, .data_pin = 14, }; static struct platform_device nsa320_hwmon = { .name = "nsa3xx-hwmon", .id = -1, .num_resources = 0, .dev = { .platform_data = &nsa320_hwmon_data, }, kirkwood_init(); ....... platform_device_register(&nsa320_hwmon);
leo
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 10, 2015 01:57PM |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 10, 2015 02:04PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 10, 2015 02:08PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 10, 2015 04:05PM |
Registered: 11 years ago Posts: 91 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 11, 2015 12:03AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 11, 2015 05:18AM |
Admin Registered: 13 years ago Posts: 19,102 |
leo
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 11, 2015 04:45PM |
root@zyxel:/lib/modules/3.18.5-kirkwood-tld-1/kernel/drivers/hwmon# modprobe -vvv ./nsa3xx-hwmon.ko && lsmod modprobe: INFO: ../libkmod/libkmod.c:354 kmod_set_log_fn() custom logging function 0xb6f38acc registered modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.18.5-kirkwood-tld-1/modules.dep.bin modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.18.5-kirkwood-tld-1/modules.alias.bin modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.18.5-kirkwood-tld-1/modules.symbols.bin modprobe: DEBUG: ../libkmod/libkmod-index.c:790 index_mm_open() file=/lib/modules/3.18.5-kirkwood-tld-1/modules.builtin.bin modprobe: DEBUG: ../libkmod/libkmod-module.c:540 kmod_module_new_from_lookup() input alias=./nsa3xx-hwmon.ko, normalized=./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod-module.c:546 kmod_module_new_from_lookup() lookup modules.dep ./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod.c:545 kmod_search_moddep() use mmaped index 'modules.dep' modname=./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod-module.c:550 kmod_module_new_from_lookup() lookup modules.symbols ./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod-module.c:554 kmod_module_new_from_lookup() lookup install and remove commands ./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod-module.c:558 kmod_module_new_from_lookup() lookup modules.aliases ./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod.c:424 kmod_lookup_alias_from_alias_bin() use mmaped index 'modules.alias' for name=./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod-module.c:562 kmod_module_new_from_lookup() lookup modules.builtin ./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod.c:495 kmod_lookup_alias_from_builtin_file() use mmaped index 'modules.builtin' modname=./nsa3xx_hwmon.ko modprobe: DEBUG: ../libkmod/libkmod-module.c:567 kmod_module_new_from_lookup() lookup ./nsa3xx_hwmon.ko=0, list=(nil) modprobe: DEBUG: lookup failed - trying to check if it's builtin modprobe: DEBUG: ../libkmod/libkmod.c:392 kmod_pool_get_module() get module name='' found=(nil) modprobe: DEBUG: ../libkmod/libkmod.c:400 kmod_pool_add_module() add 0xb8b645a0 key='' modprobe: DEBUG: ../libkmod/libkmod-module.c:1726 kmod_module_get_initstate() could not open '/sys/module//initstate': No such file or directory modprobe: DEBUG: ../libkmod/libkmod-module.c:452 kmod_module_unref() kmod_module 0xb8b645a0 released modprobe: DEBUG: ../libkmod/libkmod.c:408 kmod_pool_del_module() del 0xb8b645a0 key='' builtin ./nsa3xx-hwmon.ko modprobe: INFO: ../libkmod/libkmod.c:321 kmod_unref() context 0xb8b63118 released Module Size Used by nls_utf8 1053 1 nls_cp437 4703 1 vfat 8412 1 fat 48843 1 vfat ipv6 301542 50 md_mod 102466 0 evdev 9363 0 fixed 2289 0 orion_wdt 5721 0 hmac 2437 0 mv_cesa 10625 0 gpio_keys 7576 0 uio_pdrv_genirq 2857 0 uio 6877 1 uio_pdrv_genirq ext2 56729 1 sg 21795 0 sd_mod 33052 8 uas 12649 0 usb_storage 40262 3 uas sata_mv 25912 3 libata 149941 1 sata_mv scsi_mod 170665 5 sg,uas,usb_storage,libata,sd_mod root@zyxel:/lib/modules/3.18.5-kirkwood-tld-1/kernel/drivers/hwmon#
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 11, 2015 11:49PM |
Admin Registered: 13 years ago Posts: 19,102 |
leo
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 12, 2015 12:35PM |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 15, 2015 03:51PM |
Registered: 12 years ago Posts: 62 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 16, 2015 12:22AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 22, 2015 01:48PM |
Registered: 11 years ago Posts: 91 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 22, 2015 02:52PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 27, 2015 02:28PM |
Registered: 11 years ago Posts: 91 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 27, 2015 06:00PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Linux Kernel 4.0 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs June 29, 2015 03:01AM |
Admin Registered: 13 years ago Posts: 19,102 |
ocp@f1000000 { pinctrl: pin-controller@10000 { pmx_button_power: pmx-button-power { marvell,pins = "mpp36"; marvell,function = "gpio"; }; pmx_button_reset: pmx-button-reset { marvell,pins = "mpp38"; /* should be 37 ? */ marvell,function = "gpio";