I'm going to hazard a guess that the problem is related to the
initramfs you are using. In the output you originally provided I
see this:

 [   25.453390] systemd-journald[44]: Received SIGTERM

which implies systemd, and that the initramfs was built for
a systemd distribution. Try it without the initramfs - that
should work as long as ext4 and the usb disk driver is
built into the kernel. If they are not, you'll have to
build a suitable initramfs for your kernel that loads the
required drivers before mounting and switching to the rootfs.

Gordan

On 2015-08-21 13:23, Robert Moskowitz wrote:
On 08/21/2015 05:54 AM, 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.

NO help.  Below is evidence of "eth0":

[ 25.911794] leds-gpio leds-gpio: pins are not configured from the driver [ 26.148569] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   26.185988] libphy: mv643xx_eth smi: probed
[   26.291614] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with
MAC address 00:25:31:02:fe:7c
[   26.609696] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1
(Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64


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

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

I did not do this, as my understanding is that RSEL6 does not use
systemd and this is kernel independent.

And the ttyS0.conf did not make any improvements.  No additional
output or input accepted on the serial console.

:(


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

Reply via email to