On 08/21/2015 08:14 AM, Gordan Bobic wrote:
On 2015-08-21 12:49, Robert Moskowitz wrote:
Yes.  RSEL6.  I have not seen any RSEL7 for armv5...

We only do armv5tel targetting for RSEL, both 6 and 7. :)

The raspi2 is an armv7, yes?

CentOS are doing armv7l (not yet released) and aarch64 (released).

I know. See my posts on working with Johnny's armv7l pre-alpha build on the Centos-arm list.


I DID say 'armv5'. I really don't know what the letters after the number (5tel or 7l) mean.

My only armv5 here is the pogoplug with its kirkwood Marvel board. It is nice and pretty and I would like to get it working as a NAS. If not, I will stay with the Cubies. If they get far enough into the uboot and kernel work by Hans, he has a nice multiport sata card working for the Cubietruck, so I can go all sata, and not usb drives for my NAS. (This support is in F22, not F21). Hans ALMOST has the CUbietruck internal WiFi working in the F23 alpha (kernel patches needed), and will have it upstream 'soon', but don't hold your breath for the internal bluetooth. (see his projects page: https://revspace.nl/KernelDriverProjects).


Plus the pgoplug is only 256Mb memory, and I am concerned if that will
be enough for 7.

I haven't noticed the memory footprint being particularly different
between EL6 and EL7. With 256MB you will probably need some swap
space regardless of what you end up running.

I always build a swap partition. But good to know. If you have a RSEL7 rootfs for me to work with, please give me the URL and I will build a drive for it. Perhaps it will work better with the F18 kernel than your RSEL6 (but my Cubie RSEL6 builds use the Cubie F19 kernel work).


Gordan

On 08/21/2015 06:00 AM, Gordan Bobic wrote:
Oops, I think I misunderstood what you were trying to do. I thought
you were trying to get RSEL7 running not RSEL6, but what you pasted
indicates RSEL6. Can you please confirm?

If you are running on RSEL6, what do you have in /etc/init? Is
there serial.conf, tty.conf and start-ttys.conf in there?

If so and it still isn't working, try adding the following to
/etc/init/ttyS0.conf:
###
start on stopped rc RUNLEVEL=[2345]
stop on starting runlevel [016]

respawn

pre-start exec /sbin/securetty ttyS0
exec /sbin/agetty -L /dev/ttyS0 115200 vt102
###

and see if the getty appears on your ttyS0.

Gordan

On 2015-08-21 10:54, Gordan Bobic wrote:
1) Are you sure the device is called "eth0"? In EL7 device names
are dependant on the chipset make/model and there is no such
thing as "eth0". I am not sure how you might find out what it
is without being able to log in, though.

2) You my need "NM_CONTROLLED=no" to your list of interface
options.

Regarding getting a serial getty running with systemd, this
may be helpful:

http://0pointer.de/blog/projects/serial-console.html

As a quick bodge, you could try putting:
systemctl start [email protected]
in /etc/rc.local
Not sure if that will work, but it's worth a shot.
Failing that you could put "ifconfig -a" into rc.local
and see what that prints out to the console. At least
you'll get the interface name to configure so you
can try to ssh in.

Gordan

On 2015-08-20 18:34, Robert Moskowitz wrote:
On 08/20/2015 11:24 AM, Gordan Bobic wrote:
Regarding fsck saying the partition is mounted, you need to pass
"ro" command line option to the kernel at boot time. The rootfs is
not expected to be mounted rw before init mounts it rw.

I looked around in the /boot directory and could not find where the
kernel command line lives these days (F18).

If I had to guess, your machine is in fact fully booted. If you
configure /etc/sysconfig/network-scripts/ifcfg-${devicename}
(where ${devicename} is whatever your NIC shows up as) appropriately
to make it come up at boot time and have sshd running, you will
probably find you can ssh in. Basically you aren't getting gettys
to start up on the serial port.

I don't think so.  I created ifcfg-eth0:

DEVICE="eth0"
BOOTPROTO=dhcp
ONBOOT="yes"
TYPE="Ethernet"
NAME="System eth0"
MTU=1500
HOSTNAME="nevia.htt-consult.com"

I checked my dhcp server, and no leases. This system is currently the
only one on my test subnet, so I would see a lease...

If someone has the files I need to build a usb drive for a kirkwood
board, I would try it.  I used the F18 kernel because that is what
Fedora provides for kirkwood boards:

https://fedoraproject.org/wiki/Architectures/ARM/PogoplugUSBDisk




Gordan

On 2015-08-20 15:40, Robert Moskowitz wrote:
I rebuilt the rootfs partition and this time got the fstab options 'right':

/dev/sda3  /               ext4    defaults,noatime 0 0
/dev/sda2    swap        swap    defaults,noatime    0 0
/dev/sda1    /boot        ext2    defaults,noatime 0 0

It did not wipe out my / partition but it is still hanging. Here is
what I am seeing on the serial console:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.8.7-201.fc18.armv5tel.kirkwood
([email protected]) (gcc version 4.7.2
20121109 (Red Hat 4.7.2-8) (GCC) ) #1 Sun Apr 14 08:16:13 UTC 2013
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell SheevaPlug Reference Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200
root=/dev/sda3 rootdelay=10 rootfstype=ext4
mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)

...  ( can post all of the stuff that follows until)

[   24.601981] EXT4-fs (sda3): mounted filesystem with ordered data
mode. Opts: (null)
[   24.776976] EXT4-fs (sda3): re-mounted. Opts: (null)
[   25.324121] systemd-journald[44]: Received SIGTERM
        Welcome to Red Sleeve Enterprise Linux
Starting udev: [   26.198129] udev: starting version 147
[   26.207404] udevd (273): /proc/273/oom_adj is deprecated, please
use /proc/273/oom_score_adj instead.
[ 26.685069] leds-gpio leds-gpio: pins are not configured from the driver [ 26.865431] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   26.908498] libphy: mv643xx_eth smi: probed
[ 26.997201] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with
MAC address 00:25:31:02:fe:7c
[   27.304974] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1
(Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[   27.317091] Scanning device for bad blocks
[   27.455283] Creating 3 MTD partitions on "orion_nand":
[   27.460473] 0x000000000000-0x000000100000 : "u-boot"
[   27.470219] 0x000000100000-0x000000500000 : "uImage"
[   27.479669] 0x000000500000-0x000008000000 : "root"
[  OK  ]
Setting hostname redsleeve:  [  OK  ]
Checking filesystems
Checking all file systems.
[  OK  ]
Mounting local filesystems: [ 28.600711] EXT4-fs (sda1): mounting
ext2 file system using the ext4 subsystem
[ 28.610434] EXT4-fs (sda1): warning: mounting unchecked fs, running
e2fsck is recommended
[ 28.624194] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[  OK  ]
Enabling /etc/fstab swaps:  [   29.078357] Adding 511996k swap on
/dev/sda2.  Priority:-1 extents:1 across:511996k
[  OK  ]



On 08/19/2015 04:45 PM, Robert Moskowitz wrote:
I took a USB stick that booted f18 and made:

tar -cJf f18-uboot.tar.xz -C  /boot .
tar -cJf f18-firmware.tar.xz -C  /lib/firmware .
tar -cJf f18-modules.tar.xz -C  /lib/modules .

while logged in as root. I moved these files to my notebook, and then redid the / partition with:

mke2fs -t ext4 -L rootfs /dev/sdb3

The assumption being this would replace the rootfs partition with a new one. I then built this new partition with:

tar -C /run/media/rgm/rootfs/ -Jxvf /home/rgm/arm/RSEL/rsel6-rootfs-gui-20130927-1.tar.xz tar -C /run/media/rgm/rootfs/lib/modules -Jxvf /home/rgm/arm/RSEL/f18-modules.tar.xz tar -C /run/media/rgm/rootfs/lib/firmware -Jxvf /home/rgm/arm/RSEL/f18-firmware.tar.xz

And booted. But the /etc/fstab was not right. So I pulled the usb drive and edited the fstab with:

/dev/sda3  /               ext4 defaults,noatime        0 0
/dev/sda2    swap        swap    defaults,noatime 0 0
/dev/sda1    /boot            defaults,noatime    0 0

hmmm. Left out the ext2 for /boot, but that did not seem to be a problem. It was sda3 with the problems:

=========

[   23.067120] USB Mass Storage support registered.

[ 24.061571] scsi 0:0:0:0: Direct-Access OCZ RALLY2 1100 PQ: 0 ANSI: 0 CCS [ 24.076153] sd 0:0:0:0: [sda] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
[   24.086116] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   24.097399] sd 0:0:0:0: [sda] Write Protect is off
[   24.106512] sd 0:0:0:0: [sda] No Caching mode page present
[ 24.112071] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   24.124251] sd 0:0:0:0: [sda] No Caching mode page present
[ 24.129783] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   24.139248]  sda: sda1 sda2 sda3
[   24.151781] sd 0:0:0:0: [sda] No Caching mode page present
[ 24.157326] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   24.163484] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 24.579413] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null) [ 24.902467] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[   25.453390] systemd-journald[44]: Received SIGTERM
        Welcome to Red Sleeve Enterprise Linux
Starting udev: [   26.406234] udev: starting version 147
[ 26.415483] udevd (280): /proc/280/oom_adj is deprecated, please use /proc/280/oom_score_adj instead. [ 26.892449] leds-gpio leds-gpio: pins are not configured from the driver [ 27.059372] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   27.085716] libphy: mv643xx_eth smi: probed
[ 27.141430] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:02:fe:7c [ 27.309878] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[   27.340133] Scanning device for bad blocks
[   27.592160] Creating 3 MTD partitions on "orion_nand":
[   27.599883] 0x000000000000-0x000000100000 : "u-boot"
[   27.615629] 0x000000100000-0x000000500000 : "uImage"
[   27.628660] 0x000000500000-0x000008000000 : "root"
[  OK  ]
Setting hostname redsleeve:  [  OK  ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/sda3
/dev/sda3 is mounted.

WARNING!!! The filesystem is mounted. If you continue you ***WILL***

Do you really want to continue (y/n)? yes

rootfs: recovering journal
rootfs: clean, 67949/445280 files, 467355/1778432 blocks
[  OK  ]
Mounting local filesystems: [ 139.827302] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem [ 139.837025] EXT4-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended [ 139.849420] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[  OK  ]
Enabling /etc/fstab swaps: [ 140.340241] Adding 511996k swap on /dev/sda2. Priority:-1 extents:1 across:511996k
[  OK  ]

========

and it hung here.

So what is wrong with how I built my rootfs partition or what may be left on this usb drive from before giving me problems?

thanks

_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users

Reply via email to