From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 1 Jun 2013 09:19:26 +0200 From: tlaronde@polynum.com To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20130601071926.GA2936@polynum.com> Mime-Version: 1.0 User-Agent: Mutt/1.4.2.3i Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [9fans] ARM and u-boot Topicbox-Message-UUID: 5e5bfbaa-ead8-11e9-9d60-3106f5b1d025 Hello, I have read on the wiki that there is a 5c, for ARM 32bits little-endian, but that there is no flash memory support. Some time ago, I was looking for a NAS (for a client) and was looking for a device that was doing WORM (block deduplication) since, due to user changing metadata (file names) and due to the high necessity to have history for (binary) files, it seemed to me the best. Unfortunately, it happens that in France, for small enterprises (not to say independant worker like me), we are not a worthy target. And the hardware can not be bought directly but only from VAR. (I was looking for example for Coraid products---I don't what put me this name in the head...). So, without answers from VAR contacted, the client went for the simpler (for testing purpose) and cheaper : a Iomega Ix2. To say that the experiment was satisfying will be a big lie... The combination of XFS with RAID1 with the inability to administer wholly (problems of consistency between the two disks, so what does it do when there is a problem? Windows oriented and taking time from whatever Active Directory is telling it something despite its configuration, etc.). The result is that I have retired it and built from scratch a fileserver with a classic incremental backup policy (with NetBSD since I'm not competent enough with Plan9). But I still want to experiment with WORM (more kenfs I think) and I have this ARMv5 thing at disposal. Since it has u-boot installed and that the mapping of the flash is given does one know if one could build a Plan9 kernel, write it (via u-boot) to the flash and be able to boot? Here are the dmesg from the installed Linux kernel (note: it has GbE, but it was accessed through a network with a 100Mb switch, hence the speed reported on the interface): Linux version 2.6.31.8 (soho@bsoho091.lss.emc.com) (gcc version 4.3.2 (So= urcery G++ Lite 2008q3-72) ) #1 Thu Feb 17 18:15:07 EST 2011 CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=3D00053977 CPU: VIVT data cache, VIVT instruction cache Machine: Feroceon-KW Using UBoot passing parameters structure Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 65536 free_area_init_node: node 0, pgdat c04be8f4, node_mem_map c04e3000 Normal zone: 512 pages used for memmap Normal zone: 0 pages reserved Normal zone: 65024 pages, LIFO batch:15 Built 1 zonelists in Zone order, mobility grouping off. Total pages: 650= 24 Kernel command line: console=3DttyS0,115200 mtdparts=3Dnand_mtd:0xc0000@0= x0(uboot),0x20000@0xa0000(env),0x300000@0x100000(zImage),0x300000@0x54000= 0(initrd),128m@0x0(flash) PID hash table entries: 1024 (order: 10, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 256MB =3D 256MB total Memory: 245760KB available (4512K code, 315K data, 132K init, 0K highmem) Hierarchical RCU implementation. NR_IRQS:128 Console: colour dummy device 80x30 Calibrating delay loop... 992.87 BogoMIPS (lpj=3D4964352) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok xor: measuring software checksum speed arm4regs : 866.800 MB/sec 8regs : 684.800 MB/sec 32regs : 668.800 MB/sec xor: using function: arm4regs (866.800 MB/sec) NET: Registered protocol family 16 Feroceon L2: Enabling L2 Feroceon L2: Cache support initialised. CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 256MB=20 SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB=20 PEX0_IO ....base f2000000, size 1MB=20 PEX1_MEM ....no such PEX1_IO ....no such INTER_REGS ....base f1000000, size 1MB=20 NFLASH_CS ....base fa000000, size 2MB=20 SPI_CS ....base f4000000, size 16MB=20 BOOT_ROM_CS ....no such DEV_BOOTCS ....no such CRYPT_ENG ....base f0000000, size 2MB=20 Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- RD-88F62= 81A Soc: 88F6281 A0 LE Detected Tclk 200000000 and SysClk 333333333=20 MV Buttons Device Load Marvell USB EHCI Host controller #0: c8040740 PEX0 interface detected no Link. PCI: bus0: Fast back to back transfers enabled mvPexLocalBusNumSet: ERR. Invalid PEX interface 1 bio: create slab at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb raid6: int32x1 76 MB/s raid6: int32x2 91 MB/s raid6: int32x4 99 MB/s raid6: int32x8 77 MB/s raid6: using algorithm int32x4 (99 MB/s) cfg80211: Calling CRDA to update world regulatory domain NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered NET: Registered protocol family 1 Trying to unpack rootfs image as initramfs... rootfs image is not initramfs (no cpio magic); looks like an initrd Freeing initrd memory: 2728K rtc mv_rtc: rtc core: registered kw-rtc as rtc0 RTC registered mp_lm63: device lm63 found mp_lm63: Alert/tach pin configured for tachometer input mp_lm63: PWM clock 1.4 kHz, output frequency 22 Hz mp_lm63: PWM output active high, auto mode mp_lm63: Module loaded. cpufreq: Init kirkwood cpufreq driver cpufreq: High frequency: 1000000KHz - Low frequency: 333333KHz cpufreq: Setting CPU Frequency to 1000000 KHz cpufreq: Setting PowerSaveState to off cpufreq: Setting CPU Frequency to 1000000 KHz cpufreq: Setting PowerSaveState to off XOR registered 4 channels XOR 2nd invalidate WA enabled cesadev_init(c000ed48) mvCesaInit: sessions=3D640, queue=3D64, pSram=3Df0000000 MV Buttons Driver Load VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Installing knfsd (copyright (C) 1996 okir@monad.swb.de). JFFS2 version 2.2. (NAND) =C2=A9 2001-2006 Red Hat, Inc. msgmni has been set to 485 alg: No test for cipher_null (cipher_null-generic) alg: No test for ecb(cipher_null) (ecb-cipher_null) alg: No test for digest_null (digest_null-generic) alg: No test for compress_null (compress_null-generic) alg: No test for stdrng (krng) alg: No test for hmac(digest_null) (hmac(digest_null-generic)) async_tx: api initialized (sync-only) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler anticipatory registered (default) Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xf1012000 (irq =3D 33) is a 16550A console [ttyS0] enabled brd: module loaded loop: module loaded Integrated Sata device found IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter scsi 1:0:0:0: Direct-Access Seagate ST32000542AS CC38 PQ: 0 ANSI= : 5 sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512. sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) sd 1:0:0:0: [sda] 0-byte physical blocks sd 1:0:0:0: Attached scsi generic sg0 type 0 sd 1:0:0:0: [sda] Write Protect is off sd 1:0:0:0: [sda] Mode Sense: 23 00 10 00 Loading Marvell Ethernet Driver: o Cached descriptors in DRAM o DRAM SW cache-coherency o 2 Giga ports supported o Single RX Queue support - ETH_DEF_RXQ=3D0 o Single TX Queue support - ETH_DEF_TXQ=3D0 o TCP segmentation offload (TSO) supported o Receive checksum offload supported o Transmit checksum offload supported o Network Fast Processing (Routing) supported - (Disabled) o Driver ERROR statistics enabled o Driver INFO statistics enabled o Proc tool API enabled o SKB Reuse supported - (Disabled) o SKB Recycle supported - (Disabled) o Rx descripors: q0=3D128 o Tx descripors: q0=3D532 o Loading network interface(s): o register under mv88fx_eth platform o eth0, ifindex =3D 2, GbE port =3D 0 sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO= and FUA sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512. o eth1, ifindex =3D 3, GbE port =3D 1 mvFpRuleDb (c44ec000): 2048 entries, 8192 bytes Intel(R) PRO/1000 Network Driver - version 7.3.21-k3-NAPI Copyright (c) 1999-2006 Intel Corporation. e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2 e1000e: Copyright (c) 1999-2008 Intel Corporation. e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI e100: Copyright(c) 1999-2006 Intel Corporation sda: tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky NAND device: Manufacturer ID: 0xad, Chip ID: 0x75 (Hynix NAND 32MiB 3,3V = 8-bit) Scanning device for bad blocks mtd: nand_mtd: partitioning exceeds flash size, truncating 4 cmdlinepart partitions found on MTD device nand_mtd Using command line partition definition Creating 4 MTD partitions on "nand_mtd": 0x000000000000-0x0000000c0000 : "uboot" 0x0000000a0000-0x0000000c0000 : "env" 0x000000100000-0x000000400000 : "zImage" 0x000000540000-0x000000840000 : "initrd" ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_marvell ehci_marvell.70059: Marvell Orion EHCI ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus num= ber 1 ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 sda1 sda2 sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512. ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected sd 1:0:0:0: [sda] Attached SCSI disk ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver uhci_hcd: USB Universal Host Controller Interface driver usbcore: registered new interface driver usblp Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-sddr09 usbcore: registered new interface driver ums-sddr55 usbcore: registered new interface driver ums-usbat mice: PS/2 mouse device common for all mice i2c /dev entries driver md: linear personality registered for level -1 md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@red= hat.com dm_crypt using the OCF package. cpufreq: Setting CPU Frequency to 1000000 KHz cpufreq: Setting PowerSaveState to off TCP cubic registered NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. rtc mv_rtc: setting system clock to 2011-02-12 18:03:03 UTC (1297533783) md: Waiting for all devices to be available before autodetect md: If you don't use raid, use raid=3Dnoautodetect md: Autodetecting RAID arrays. md: Scanned 0 and added 0 devices. md: autorun ... md: ... autorun DONE. RAMDISK: gzip image found at block 0 usb 1-1: new high speed USB device using ehci_marvell and address 2 usb 1-1: configuration #1 chosen from 1 choice hub 1-1:1.0: USB hub found hub 1-1:1.0: 4 ports detected VFS: Mounted root (ext2 filesystem) on device 1:0. md: md0 stopped. md: bind raid1: raid set md0 active with 1 out of 2 mirrors md0: detected capacity change from 0 to 21484339200 md0: unknown partition table EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended NTFS driver 2.1.29 [Flags: R/O MODULE]. usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver Bluetooth: Core ver 2.15 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP ver 2.13 Bluetooth: L2CAP socket layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11 ufsd: module license 'Commercial product' taints kernel. Disabling lock debugging due to kernel taint ufsd: driver 8.3 (009_A) LBD=3DON with ioctl loaded at bf0ee000 NTFS read/write support included Hfs+/HfsX read/write support included SGI XFS with ACLs, security attributes, large block/inode numbers, no deb= ug enabled SGI XFS Quota Management subsystem Freeing init memory: 132K eth1: link up, full duplex, speed 100 Mbps eth1: started warning: `proftpd' uses 32-bit capabilities (legacy support in use) md: md1 stopped. md: bind md1: detected capacity change from 0 to 1978914373632 md1: unknown partition table XFS mounting filesystem dm-1 Starting XFS recovery on filesystem: dm-1 (logdev: internal) Ending XFS recovery on filesystem: dm-1 (logdev: internal) XFS mounting filesystem dm-2 Starting XFS recovery on filesystem: dm-2 (logdev: internal) Ending XFS recovery on filesystem: dm-2 (logdev: internal) Adding 524280k swap on /mnt/system/swapfile. Priority:-1 extents:4 acros= s:524308k=20 iSCSI Enterprise Target Software - version 1.4.20.2 iscsi_trgt: Registered io type fileio iscsi_trgt: Registered io type blockio iscsi_trgt: Registered io type nullio Uncached vma c7f872e0 (addr 405c7000 flags 080000d5 phy 075b7000) from pi= d 2635 Uncached vma c2dfdf40 (addr 405f3000 flags 080000d5 phy 075b7000) from pi= d 2635 Uncached vma c533e288 (addr 4bb48000 flags 080000d5 phy 075b7000) from pi= d 2635 Uncached vma c9782bd0 (addr 40638000 flags 080000d5 phy 075b7000) from pi= d 2635 Uncached vma c9d681d8 (addr 40b80000 flags 080000d5 phy 075b7000) from pi= d 2635 Uncached vma c73c0b20 (addr 404ca000 flags 080000d5 phy 075b7000) from pi= d 2675 Uncached vma c79978b8 (addr 40638000 flags 080000d5 phy 075b7000) from pi= d 2676 Uncached vma c737e6a8 (addr 40b80000 flags 080000d5 phy 075b7000) from pi= d 2676 Uncached vma c7f87860 (addr 404ca000 flags 080000d5 phy 075b7000) from pi= d 2710 Uncached vma c737e758 (addr 40638000 flags 080000d5 phy 075b7000) from pi= d 2713 Uncached vma c59210d0 (addr 405f3000 flags 080000d5 phy 075b7000) from pi= d 2720 Uncached vma ced027b0 (addr 405f3000 flags 080000d5 phy 075b7000) from pi= d 2721 Uncached vma c61b0bd0 (addr 405f3000 flags 080000d5 phy 075b7000) from pi= d 2722 --=20 Thierry Laronde http://www.kergis.com/ Key fingerprint =3D 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C