Re: problem with n810 boot up

Luke-Jr
2010-01-06T03:08:10Z

On Tuesday 05 January 2010 08:46:27 pm Francisco Alecrim wrote:
> Luke-Jr wrote:
> > On Tuesday 05 January 2010 05:24:56 pm Francisco Alecrim wrote:
> >> Luke-Jr wrote:
> >>> Tested on Nokia N810 in Linux-OMAP tree. Mainline is not bootable yet.
> >>
> >> I'm with some problems to boot-up latest l-o(commit
> >> abb74381235a05f15a3b07e9e3831034942c67fb) with n810. The error message
> >> can be found below and full boot output in the end of email.
> >>
> >> dsme: No correct bootreason found, entering the malfunction state
> >
> > That's DSME, part of Maemo userland. You can possibly write a LD_PRELOAD
> > workaround if you want to run it anyway...
>
> I tried but it doesn't work. I included a line to print the
> /proc/bootreason value and there is no bootreason. :P
>
> cat: /proc/bootreason: No such file or directory
>
> I guess that's the problem.

Yeah, that "file" isn't supposed to exist. It was a Nokia-specific hack.

> >> What rootfs do you use? Did you change initfs?
> >
> > Gentoo. I modified my initfs to chainload its init if a new kernel is
> > running.
>
> I don't know how to do it. Could you send me yours?

special=false
if echo -n >/writetest; then
exec >/$(uname -r).log
exec 2>&1
/dmesg.static
ls -lh /dev
# ifconfig usb0 192.168.1.2
# mount -t proc proc proc
# ifconfig -a
# umount proc
# sync

if true; then

echo A
mount -t proc proc proc
mount /dev/mmcblk0p1 /mnt/new_root || exec /bin/sh
echo B
cd /mnt/new_root
mkdir -p mnt/initfs
echo C
pivot_root . mnt/initfs
echo D
cd /
mount
sync
echo E
exec /usr/bin/chroot / /sbin/init

fi

special=true
fi