Welcome! Log In Create A New Profile

Advanced

dpkg install to upgrade kernel permission error with mkimage

Posted by z3bram3n 
dpkg install to upgrade kernel permission error with mkimage
August 30, 2015 01:21PM
Bohdi, and all the others

Again, thanks for the great effort and progress you have made here. It's been fun.

I tried to update my nsa320 using the test kernel and ran into a problem when running dpkg -i. I got some errors. I had tried this more than once so some of the messages were due to the existence of the test modules for this version. I said "no" to overwrite. But this same problem arose when I had tried to update kernel before with the generic version.

I had read the comment to remove flash_kernel but it wasn't on my system. ( edit: I had put "mkinitramfs initially by mistake)

I read through about 13 pages of earlier posts but have not yet encountered these messages (or a solution).

I am running your fs as well although I have added several unrelated packages for various things (faxing for example).

Running depmod.
Ok, continuing as directed
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.1.0-kirkwood-tld-3-test /boot/vmlinuz-4.1.0-kirkwood-tld-3-test
/etc/kernel/postinst.d/apt-auto-removal: 44: /etc/kernel/postinst.d/apt-auto-removal: awk: Permission denied
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.1.0-kirkwood-tld-3-test /boot/vmlinuz-4.1.0-kirkwood-tld-3-test
update-initramfs: Generating /boot/initrd.img-4.1.0-kirkwood-tld-3-test
/usr/sbin/mkinitramfs: 172: /usr/sbin/mkinitramfs: awk: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/sbin/mkinitramfs: 62: /usr/sbin/mkinitramfs: modprobe: Permission denied
/usr/share/initramfs-tools/hooks/dmsetup: 62: /usr/share/initramfs-tools/hooks/dmsetup: modprobe: Permission denied
/usr/sbin/mkinitramfs: 305: /usr/sbin/mkinitramfs: depmod: Permission denied
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 4.1.0-kirkwood-tld-3-test /boot/vmlinuz-4.1.0-kirkwood-tld-3-test



Edited 1 time(s). Last edit at 08/30/2015 01:24PM by z3bram3n.
Re: dpkg install to upgrade kernel permission error with mkimage
August 30, 2015 03:04PM
@z3bram3n,

There is something peculiar about your rootfs. I've installed and been running this test kernel on my NSA310S. Try it with a new test USB rootfs to see if you encounter the same problem.

Do you have more than one user on your system, or just root?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: dpkg install to upgrade kernel permission error with mkimage
August 30, 2015 04:20PM
Thanks. I'll do that when I get a chance.
I think I installed hylafax and freeswitch on here at some point. I believe they might create additional users. I checked the permissions of the directories and they all had full root privileges

Paul
Re: dpkg install to upgrade kernel permission error with mkimage
August 30, 2015 05:54PM
Bohdi,

Of course that worked! Thanks.

Paul
Re: dpkg install to upgrade kernel permission error with mkimage
September 01, 2015 11:13AM
So I got the new test kernel up an running and started getting the sensors set up. I was perusing the dmesg log and saw the partition setup. Is this normal? Does this get rebuilt each boot?
I bought this unit off eBay a few years ago and immediately began to hack it to run DavyGravy's debian. It was pretty easy so I didn't explore this before.

root@debian:~# dmesg|grep partition
[    1.865008] 9 cmdlinepart partitions found on MTD device orion_nand
[    1.871303] Creating 9 MTD partitions on "orion_and":

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.0-kirkwood-tld-3-test (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 PREEMPT Thu Aug 27 00:36:56 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Zyxel NSA320
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c08846cc, node_mem_map dfbf9000
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=USBROOT rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503644K/524288K available (5930K kernel code, 563K rwdata, 1980K rodata, 288K init, 302K bss, 20644K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07c1d9c   (7912 kB)
      .init : 0xc07c2000 - 0xc080a000   ( 288 kB)
      .data : 0xc080a000 - 0xc0896f0c   ( 564 kB)
       .bss : 0xc0896f0c - 0xc08e2a94   ( 303 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000416] Console: colour dummy device 80x30
[    0.000448] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.090100] pid_max: default: 32768 minimum: 301
[    0.090229] Security Framework initialized
[    0.090362] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090385] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091155] Initializing cgroup subsys blkio
[    0.091186] Initializing cgroup subsys devices
[    0.091210] Initializing cgroup subsys freezer
[    0.091244] Initializing cgroup subsys net_cls
[    0.091344] CPU: Testing write buffer coherency: ok
[    0.091768] Setting up static identity map for 0x8200 - 0x8258
[    0.092108] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.096082] devtmpfs: initialized
[    0.102993] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103469] prandom: seed boundary self test passed
[    0.107208] prandom: 100 self tests passed
[    0.107345] pinctrl core: initialized pinctrl subsystem
[    0.108731] NET: Registered protocol family 16
[    0.109209] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.140103] cpuidle: using governor ladder
[    0.170103] cpuidle: using governor menu
[    0.170561] Feroceon L2: Enabling L2
[    0.170607] Feroceon L2: Cache support initialised.
[    0.171038] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.176723] No ATAGs?
[    0.211629] vgaarb: loaded
[    0.212004] usbcore: registered new interface driver usbfs
[    0.212096] usbcore: registered new interface driver hub
[    0.212165] usbcore: registered new device driver usb
[    0.213297] Switched to clocksource orion_clocksource
[    0.267099] NET: Registered protocol family 2
[    0.267834] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.267895] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.267947] TCP: Hash tables configured (established 4096 bind 4096)
[    0.268015] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.268039] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.268231] NET: Registered protocol family 1
[    0.268609] RPC: Registered named UNIX socket transport module.
[    0.268621] RPC: Registered udp transport module.
[    0.268628] RPC: Registered tcp transport module.
[    0.268636] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.268657] PCI: CLS 0 bytes, default 32
[    0.268898] Unpacking initramfs...
[    0.895367] Freeing initrd memory: 6940K (cf939000 - d0000000)
[    0.895505] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.896902] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.896934] Initialise system trusted keyring
[    0.897043] audit: initializing netlink subsys (disabled)
[    0.897093] audit: type=2000 audit(0.890:1): initialized
[    0.897866] zpool: loaded
[    0.897883] zbud: loaded
[    0.898193] VFS: Disk quotas dquot_6.6.0
[    0.898258] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.898859] NFS: Registering the id_resolver key type
[    0.898902] Key type id_resolver registered
[    0.898911] Key type id_legacy registered
[    0.898938] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.898954] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.899183] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.899669] Key type big_key registered
[    0.903644] alg: No test for stdrng (krng)
[    0.903691] Key type asymmetric registered
[    0.903708] Asymmetric key parser 'x509' registered
[    0.903790] bounce: pool size: 64 pages
[    0.903882] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.903900] io scheduler noop registered
[    0.903913] io scheduler deadline registered
[    0.903960] io scheduler cfq registered (default)
[    0.905293] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.905998] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.906426] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.907293] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.907312] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.907326] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.907339] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.907351] pci_bus 0000:00: scanning bus
[    0.907383] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    0.907429] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x40
[    0.907689] pci_bus 0000:00: fixups for bus
[    0.907704] PCI: bus0: Fast back to back transfers disabled
[    0.907718] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.907731] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.907747] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.907888] pci_bus 0000:01: scanning bus
[    0.907919] pci_bus 0000:01: fixups for bus
[    0.907927] PCI: bus1: Fast back to back transfers enabled
[    0.907938] pci_bus 0000:01: bus scan returning with max=01
[    0.907952] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.907967] pci_bus 0000:00: bus scan returning with max=01
[    0.907982] pci 0000:00:01.0: fixup irq: got 0
[    0.907993] pci 0000:00:01.0: assigning IRQ 00
[    0.908016] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.908302] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.943392] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.983361] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.983542] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.023361] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    1.063361] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    1.063778] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.065156] console [ttyS0] disabled
[    1.065218] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    1.734322] console [ttyS0] enabled
[    1.739122] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.745543] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.750184] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.757813] Scanning device for bad blocks
[    1.834673] Bad eraseblock 756 at 0x000005e80000
[    1.865008] 9 cmdlinepart partitions found on MTD device orion_nand
[    1.871303] Creating 9 MTD partitions on "orion_nand":
[    1.876491] 0x000000000000-0x000000100000 : "u-boot"
[    1.882595] 0x000000100000-0x000000180000 : "uboot_env"
[    1.888933] 0x000000180000-0x000000200000 : "key_store"
[    1.895282] 0x000000200000-0x000000280000 : "info"
[    1.901171] 0x000000280000-0x000000c80000 : "etc"
[    1.907035] 0x000000c80000-0x000001680000 : "kernel_1"
[    1.913332] 0x000001680000-0x000004640000 : "rootfs1"
[    1.919489] 0x000004640000-0x000005040000 : "kernel_2"
[    1.925743] 0x000005040000-0x000008000000 : "rootfs2"
[    1.932907] libphy: Fixed MDIO Bus: probed
[    1.937408] libphy: orion_mdio_bus: probed
[    1.947415] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.954905] mv643xx_eth: Set the PHY to fix link down
[    1.960529] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:xx:xx:xx
[    1.969822] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.976501] ehci-pci: EHCI PCI platform driver
[    1.981039] ehci-orion: EHCI orion driver
[    1.985307] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.990845] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.998752] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    2.023333] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.029592] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.036438] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.043781] usb usb1: Product: EHCI Host Controller
[    2.048688] usb usb1: Manufacturer: Linux 4.1.0-kirkwood-tld-3-test ehci_hcd
[    2.055794] usb usb1: SerialNumber: f1050000.ehci
[    2.061266] hub 1-0:1.0: USB hub found
[    2.065120] hub 1-0:1.0: 1 port detected
[    2.069986] mousedev: PS/2 mouse device common for all mice
[    2.076321] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    2.083478] i2c /dev entries driver
[    2.087788] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    2.095971] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    2.105821] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    2.114481] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    2.122130] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc1
[    2.131245] hidraw: raw HID events driver (C) Jiri Kosina
[    2.137029] drop_monitor: Initializing network drop monitor service
[    2.143607] NET: Registered protocol family 17
[    2.148184] Key type dns_resolver registered
[    2.153341] Loading compiled-in X.509 certificates
[    2.158181] registered taskstats version 1
[    2.179854] Key type encrypted registered
[    2.184573] rtc-mv f1010300.rtc: setting system clock to 2015-09-01 02:51:25 UTC (1441075885)
[    2.194498] PM: Hibernation image not present or could not be loaded.
[    2.195599] Freeing unused kernel memory: 288K (c07c2000 - c080a000)
[    2.270377] systemd-udevd[72]: starting version 215
[    2.285458] random: systemd-udevd urandom read with 4 bits of entropy available
[    2.383482] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.468946] SCSI subsystem initialized
[    2.516128] libata version 3.00 loaded.
[    2.518188] sata_mv f1080000.sata: version 1.28
[    2.518499] sata_mv f1080000.sata: slots 32 ports 2
[    2.545277] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.552037] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.571635] usb 1-1: Product: USB2.0 Hub
[    2.580909] hub 1-1:1.0: USB hub found
[    2.588936] hub 1-1:1.0: 4 ports detected
[    2.596852] scsi host0: sata_mv
[    2.615929] scsi host1: sata_mv
[    2.619445] ata1: SATA max UDMA/133 irq 33
[    2.644359] ata2: SATA max UDMA/133 irq 33
[    2.873642] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    2.984261] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5567
[    2.991187] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.998591] ata1: SATA link down (SStatus 0 SControl F300)
[    3.004130] usb 1-1.4: Product: Cruzer Blade
[    3.008419] usb 1-1.4: Manufacturer: SanDisk
[    3.012721] usb 1-1.4: SerialNumber: 4C530301461114104241
[    3.028201] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    3.035083] scsi host2: usb-storage 1-1.4:1.0
[    3.041183] usbcore: registered new interface driver usb-storage
[    3.050220] usbcore: registered new interface driver uas
[    3.383342] ata2: SATA link down (SStatus 0 SControl F300)
[    4.034118] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    4.051080] sd 2:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.060047] sd 2:0:0:0: [sda] Write Protect is off
[    4.064931] sd 2:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.065666] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.082286]  sda: sda1 sda2
[    4.088937] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    4.098623] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   14.928554] systemd-udevd[283]: starting version 215
[   15.202302] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   15.422413] orion_wdt: Initial timeout 21 sec
[   16.077567] random: nonblocking pool is initialized
[   19.419159] NET: Registered protocol family 10
[   19.514465] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   19.520820] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.638107] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   22.648042] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[41791.574856] data-gpios value id 0x0e!
[41791.574880] clk-gpios value id 0x10!
[41791.574893] act-gpios value id 0x11!
[41791.575158] nsa3xx-hwmon nsa3xx-hwmon: initialized
[41800.371778] nsa3xx-hwmon nsa3xx-hwmon: Reading MCU data
[41800.371803] nsa3xx-hwmon nsa3xx-hwmon: gpio set value MCU act pin 0
[41800.479786] nsa3xx-hwmon nsa3xx-hwmon: gpio set value MCU act pin 1
[41800.479802] channel value 0x01!
[41800.480757] channel value 0x00!
[41800.480969] channel value 0x00!
root@debian:~#

Here is my fw_printenv output

root@debian:~# fw_printenv
arcNumber=3956
baudrate=115200
boot_sata2=mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sdb1 rootdelay=10 $mtdparts; ide reset; ext2load ide 1:1 0x800000 /boot/uImage; ext2load ide 1:1 0x01100000 /boot/uInitrd; bootm 0x00800000 0x01100000
bootcmd=run boot_sata1; run boot_sata2; run bootcmd_usb; usb stop; run bootcmd_rescue; reset
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x4640000 0xa00000; bootm 0x800000
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
ethact=egiga0
ethaddr=xx:xx:xx:xx:xx:xx
if_netconsole=ping $serverip
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)
netmask=255.255.255.0
partition=nand0,2
preboot=run if_netconsole start_netconsole
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=8 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
usb_device=0:1
usb_init=usb start
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_root=LABEL=USBROOT
usb_rootdelay=10
usb_rootfstype=ext2
boot_sata1=mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 ipv6.disable=1 $mtdparts; ide reset; ext2load ide 0:1 0x800000 /boot/uImage; ext2load ide 0:1 0x01100000 /boot/uInitrd; bootm 0x00800000 0x01100000
serverip=192.168.11.91
ipaddr=192.168.11.51
stderr=serial
stdin=serial
stdout=serial
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-nsa320.dtb
load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi

Re: dpkg install to upgrade kernel permission error with mkimage
September 01, 2015 12:21PM
z3bram3n,

> the dmesg log and saw the partition setup. Is this
> normal? Does this get rebuilt each boot?

I did not see any "partition set up" in the log? everything looks normal.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 09/01/2015 12:23PM by bodhi.
Re: dpkg install to upgrade kernel permission error with mkimage
September 01, 2015 12:56PM
Granted I don't know if this is history or actually occurring on boot but here is line 1.87 from dimes

1.871303] Creating 9 MTD partitions on "orion_nand":
Re: dpkg install to upgrade kernel permission error with mkimage
September 01, 2015 02:45PM
OK, I searched the forum for other output and found that this is normally reported. I guess I was misinterpreting what the log said.

Thanks
Paul
Re: dpkg install to upgrade kernel permission error with mkimage
September 01, 2015 05:09PM
z3bram3n Wrote:
-------------------------------------------------------
> OK, I searched the forum for other output and
> found that this is normally reported. I guess I
> was misinterpreting what the log said.
>
> Thanks
> Paul

Ah! That's nomal. We pass mtdparts parameter to the kernel, so it always does this allocation (nothing was written to Nand).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: