Am 10.01.2017 um 00:04 schrieb Alexander Graf: > On 09/01/2017 21:20, Frank Kunz wrote: >> Am 08.01.2017 um 22:29 schrieb Alexander Graf: >>>>> For the gfx command line you may want to add a second console=tty >>>>> or so? >>>> That did not help so far so solve my login problem. In the mean time I >>>> started to modify the initrd that the /boot/mbrid file does not match. >>>> But no idea yet what could be wrong. I haven't found out where it is >>>> set >>>> during the image build process, how to debug that? >>> >>> The mbrid file gets generated by kiwi when it writes the MBR ID field in >>> the MBR of the target device. So they really should be in sync. If they >>> are not, something goes wrong in the u-boot-install/setup scripts. >>> >>> Also, have you verified that the target device is actually visible from >>> within the kiwi initrd? Maybe the module is missing? >> >> I modified the initrd init/include scripts to print the device names >> that were used for the search run, and the mmcblk0 is there, and some >> value is read out. So the driver seems to be ok. The value read from >> /boot/mbrid is a different value. > > That sounds to me like something is messing with the MBR after it got > created.
He's calling parted in uboot-image-install.in: https://build.opensuse.org/package/rdiff/home:frank_kunz:branches:openSUSE:Factory:ARM/JeOS?opackage=JeOS&oproject=openSUSE%3AFactory%3AARM&rev=19 (Any reason for that placement of the hunk instead of adding in the bottom?) You may need to save and restore mbrid as done some lines up. #========================================== +# install socfpga u-boot into special boot partition +#------------------------------------------ +if [[ "$flavor" = "socfpga"* ]];then + echo "Installing All-in-one U-Boot/SPL to u-boot partition..." + LINE=$(kpartx -asv $diskname | head -n1) + PART=$(echo "$LINE" | awk '{print $3}') + LOOPDEV=$(echo "/dev/$PART" | sed 's/p[0-9][0-9]*$//') + parted -s $LOOPDEV set 1 type 0xa2 + cp /usr/src/packages/KIWIROOT-oem/boot/u-boot-with-spl.sfp boot/ + if ! dd if=boot/u-boot-with-spl.sfp of=/dev/mapper/$PART; then + echo "Couldn't install SPL on /dev/mapper/$PART" + exit 1 + fi + # "kpartx -dv $diskname" does not work if $diskname + # is longer than 64 characters + kpartx -dv $LOOPDEV + losetup -d $LOOPDEV +fi > The MBR ID inside the raw image's MBR and the mbrid file are > both created by kiwi and usually well aligned. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]
