해피 투게더

Iomega EZ linux kernel 4.4(debian Jessie) 본문

장난감

Iomega EZ linux kernel 4.4(debian Jessie)

보아요 2017. 6. 20. 14:21

iomega 에는 기존에 커널 Linux-2.6.31.8 가 설치 되어 있다.
최신 배포판을 사용하고 싶어서 http://forum.doozan.com/list.php?2

위 포럼을 주시하고 있었는데 최근에 어떤 유저가 ix2-ng 에 최신 커널을 올렸다는 소식이 있었다.
Kernel linux-4.10.0-kirkwood-tld-1 package has been uploaded.

- Added the Lenovo/Iomega ix2-ng support.
- Modified all supported boxes DTS to allow ethaddr (MAC address) setting in Linux.

Credits: thanks sarcastic.mannequin for the works to bring up the new box: Lenovo/Iomega ix2-ng.

아마 같은 보드 사용이라고 알고 있어서 포럼에서 배포하는 리눅스 4.4 에 최신 커널에 있는 kirkwood-lenovo-ix2-ng.dtb 를 사용해서 uImage 를 만들고 uboot 환경을 바꾸어서 부팅 시도후 결과는 성공.

포럼 운영자이신 bodhi 님 정말 고맙습니다!!!!!

남은 문제점
uboot 환경 저장 >>> 해결
Marvell>> setenv make_usb_bootargs 'setenv bootargs $(console) $(bootargs_mtd) $(bootargs_end) root=LABEL=rootfs rootdelay=10'
Marvell>> saveenv
Saving Environment to Flash...
.
Un-Protected 1 sectors
.
Un-Protected 1 sectors
Erasing Flash...
.
Erased 1 sectors Writing to Flash...
done
.
Protected 1 sectors
.
Protected 1 sectors
Marvell>> boot

led 가 흰색만 들어오는데 소으니님이나 원일님 처럼 파란, 빨간색으로 >>> 해결

nano /etc/rc.local

대충 아래처럼 해결 부팅후에 흰색끄고 빨간색은 항상 파랑색은 하드액세스시에

echo default-on > /sys/devices/platform/gpio-leds/leds/ix2:red:sys/trigger
echo ide-disk1 > /sys/devices/platform/gpio-leds/leds/ix2:blue:hdd/trigger
echo 0 > /sys/devices/platform/gpio-leds/leds/ix2:white:sys/brightness

        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** ix1-spi ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:17:21) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1200Mhz L2 running @ 600Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST340014AS                               Firm: 8.12     Ser#:             5MQ3ESZM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 38146.9 MB = 37.2 GB (78125000 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> setenv make_usb_bootargs 'setenv bootargs $(console) $(bootargs_mtd) $(bootargs_end) root=LABEL=rootfs rootdelay=10'
Marvell>> boot

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST340014AS                               Firm: 8.12     Ser#:             5MQ3ESZM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 38146.9 MB = 37.2 GB (78125000 x 512)

(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
................................................................................................................................................................................................................................................................................................................

3167987 bytes read
....
.........................................................................................................................................................................................................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................................................................

7179935 bytes read
## Booting image at 00040000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2017-06-01  10:40:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3167923 Bytes =  3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes =  6.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    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.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Lenovo IX2-ng
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 113620K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 17452K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    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.000333] Console: colour dummy device 80x30
[    0.000362] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090101] pid_max: default: 32768 minimum: 301
[    0.090208] Security Framework initialized
[    0.090282] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090302] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091088] Initializing cgroup subsys io
[    0.091121] Initializing cgroup subsys devices
[    0.091145] Initializing cgroup subsys freezer
[    0.091178] Initializing cgroup subsys net_cls
[    0.091259] CPU: Testing write buffer coherency: ok
[    0.091703] Setting up static identity map for 0x8200 - 0x8258
[    0.091995] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.095604] devtmpfs: initialized
[    0.101206] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101670] prandom: seed boundary self test passed
[    0.105425] prandom: 100 self tests passed
[    0.105450] pinctrl core: initialized pinctrl subsystem
[    0.106814] NET: Registered protocol family 16
[    0.107258] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130100] cpuidle: using governor ladder
[    0.160102] cpuidle: using governor menu
[    0.160539] Feroceon L2: Enabling L2
[    0.160580] Feroceon L2: Cache support initialised.
[    0.160956] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.166580] No ATAGs?
[    0.201541] vgaarb: loaded
[    0.201891] usbcore: registered new interface driver usbfs
[    0.201969] usbcore: registered new interface driver hub
[    0.202031] usbcore: registered new device driver usb
[    0.203134] clocksource: Switched to clocksource orion_clocksource
[    0.258186] NET: Registered protocol family 2
[    0.258976] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259007] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259031] TCP: Hash tables configured (established 1024 bind 1024)
[    0.259093] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.259119] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.259315] NET: Registered protocol family 1
[    0.259709] RPC: Registered named UNIX socket transport module.
[    0.259721] RPC: Registered udp transport module.
[    0.259728] RPC: Registered tcp transport module.
[    0.259735] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.260010] Unpacking initramfs...
[    0.882153] Freeing initrd memory: 7012K (c1100000 - c17d9000)
[    0.882310] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.883462] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.883534] audit: initializing netlink subsys (disabled)
[    0.883587] audit: type=2000 audit(0.880:1): initialized
[    0.883933] Initialise system trusted keyring
[    0.884315] zbud: loaded
[    0.884598] VFS: Disk quotas dquot_6.6.0
[    0.884658] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.885194] NFS: Registering the id_resolver key type
[    0.885231] Key type id_resolver registered
[    0.885240] Key type id_legacy registered
[    0.885266] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.885280] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.885499] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.886001] Key type big_key registered
[    0.905236] Key type asymmetric registered
[    0.905259] Asymmetric key parser 'x509' registered
[    0.905352] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.905372] io scheduler noop registered
[    0.905387] io scheduler deadline registered
[    0.905445] io scheduler cfq registered (default)
[    0.906776] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.907461] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.907885] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.908427] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.943838] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.944088] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.983840] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.984335] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.985646] console [ttyS0] disabled
[    0.985706] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A
[    1.588125] console [ttyS0] enabled
[    1.593571] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    1.604521] libphy: Fixed MDIO Bus: probed
[    1.608965] libphy: orion_mdio_bus: probed
[    1.617607] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.625750] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:14:0b:8a
[    1.634740] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.641324] ehci-pci: EHCI PCI platform driver
[    1.645906] ehci-orion: EHCI orion driver
[    1.650102] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.655690] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.663571] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    1.683168] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.689421] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.696271] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.703544] usb usb1: Product: EHCI Host Controller
[    1.708445] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    1.715105] usb usb1: SerialNumber: f1050000.ehci
[    1.720549] hub 1-0:1.0: USB hub found
[    1.724399] hub 1-0:1.0: 1 port detected
[    1.729307] mousedev: PS/2 mouse device common for all mice
[    1.735601] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    1.742676] i2c /dev entries driver
[    1.748683] hidraw: raw HID events driver (C) Jiri Kosina
[    1.754549] drop_monitor: Initializing network drop monitor service
[    1.761101] NET: Registered protocol family 17
[    1.765857] Key type dns_resolver registered
[    1.770967] registered taskstats version 1
[    1.775158] Loading compiled-in X.509 certificates
[    1.780028] zswap: loaded using pool lzo/zbud
[    1.792489] Key type encrypted registered
[    1.797155] rtc-mv f1010300.rtc: setting system clock to 2017-06-04 00:09:55 UTC (1496534995)
[    1.808269] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[    1.881193] systemd-udevd[81]: starting version 215
[    1.895179] random: systemd-udevd urandom read with 3 bits of entropy available
[    2.043263] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.062009] SCSI subsystem initialized
[    2.118926] sata_mv f1080000.sata: slots 32 ports 2
[    2.160542] scsi host0: sata_mv
[    2.179160] scsi host1: sata_mv
[    2.182683] ata1: SATA max UDMA/133 irq 34
[    2.208224] usb 1-1: New USB device found, idVendor=05e3, idProduct=0723
[    2.215399] ata2: SATA max UDMA/133 irq 34
[    2.219624] usb 1-1: New USB device strings: Mfr=3, Product=4, SerialNumber=2
[    2.234665] usb 1-1: Product: USB Storage
[    2.238720] usb 1-1: Manufacturer: Generic
[    2.242929] usb 1-1: SerialNumber: 000000009451
[    2.272041] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.279565] usb-storage 1-1:1.0: Quirks match for vid 05e3 pid 0723: 8000
[    2.286543] scsi host2: usb-storage 1-1:1.0
[    2.292425] usbcore: registered new interface driver usb-storage
[    2.301448] usbcore: registered new interface driver uas
[    2.723176] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    2.763206] ata1.00: ATA-6: ST340014AS, 8.12, max UDMA/133
[    2.768718] ata1.00: 78125000 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    2.833209] ata1.00: configured for UDMA/133
[    2.853599] scsi 0:0:0:0: Direct-Access     ATA      ST340014AS       8.12 PQ: 0 ANSI: 5
[    3.213169] ata2: SATA link down (SStatus 0 SControl F300)
[    3.245408] sd 0:0:0:0: [sda] 78125000 512-byte logical blocks: (40.0 GB/37.2 GiB)
[    3.255729] sd 0:0:0:0: [sda] Write Protect is off
[    3.260660] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.274811]  sda: sda1
[    3.278890] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.287630] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.294431] scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
[    3.314749] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    3.459380] sd 2:0:0:0: [sdb] 7959552 512-byte logical blocks: (4.07 GB/3.79 GiB)
[    3.469602] sd 2:0:0:0: [sdb] Write Protect is off
[    3.476742] sd 2:0:0:0: [sdb] No Caching mode page found
[    3.482288] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    3.498723]  sdb: sdb1
[    3.512763] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
rootfs: clean, 49661/248992 files, 443084/994560 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   15.230963] systemd-udevd[298]: starting version 215
. ok
[....] Synthesizing the initial hotplug events...[   15.515130] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   15.738606] orion_wdt: Initial timeout 21 sec
[   15.760777] marvell-cesa: probe of f1030000.crypto failed with error -524
[   15.792668] adt7475 0-002e: ADT7473 device, revision 2
[   15.839513] random: nonblocking pool is initialized
[   15.847751] adt7475 0-002e: Bypassing attenuators on: in1
done.
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 49661/248992 files, 443084/994560 blocks
done.
[....] Activating lvm and md swap...[   18.030186] Adding 524284k swap on /swapfile.  Priority:-1 extents:225 across:752796k FS
done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[   18.824514] EXT4-fs (sda1): mounted filesystem with writeback data mode. Opts: data=writeback
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   19.977981] NET: Registered protocol family 10
[   20.087968] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit <a href="https://www.isc.org/software/dhcp/" rel="nofollow">" target="_blank" class="se_link">https://www.isc.org/software/dhcp/</a>

Listening on LPF/eth0/00:d0:b8:14:0b:8a
Sending on   LPF/eth0/00:d0:b8:14:0b:8a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[   23.661024] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   23.670946] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.2.1
DHCPACK from 192.168.2.1
Reloading /etc/samba/smb.conf: smbd.
bound to 192.168.2.101 -- renewal in 36158 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1258 (syslogd)
. ok
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting the hd-idle daemon: hd-idle.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1256 (klogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting ftp server: proftpd.
[ ok ] Starting NetBIOS name server: nmbd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting SMB/CIFS daemon: smbd.

Debian GNU/Linux 8 IOMEGA-EZ ttyS0

IOMEGA-EZ login: