[ solved ] Failed to boot from Network

Home Forums GeeXboX for PC [ solved ] Failed to boot from Network

Tagged: 

This topic contains 19 replies, has 2 voices, and was last updated by  tomlohave 7 years, 9 months ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #1682

    Elsurubi
    Participant

    Sorry for my english

    I have a FREENAS system, configured with TFTP service and NFS service, my goal is to boot GEEXBOX 2.0 from that system

    all goes well, until a Geexbox Splash screen, Automatic boot in 2…1 and again Automatic boot in 2…1

    The TFTP LOG show this:

    in.tftpd[3128]: tftp: client does not accept options
    in.tftpd[3129]: RRQ from 10.0.0.105 filename pxelinux.0
    in.tftpd[3131]: RRQ from 10.0.0.105 filename pxelinux.cfg/00e04d17-xxxx-ffff-ffff-ffffffffffff
    in.tftpd[3132]: RRQ from 10.0.0.105 filename pxelinux.cfg/01-00-e0-4d-xx-xx-xx
    in.tftpd[3133]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A000069
    in.tftpd[3135]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A00006
    in.tftpd[3136]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A0000
    in.tftpd[3137]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A000
    in.tftpd[3138]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A00
    in.tftpd[3139]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A0
    in.tftpd[3140]: RRQ from 10.0.0.105 filename pxelinux.cfg/0A
    in.tftpd[3141]: RRQ from 10.0.0.105 filename pxelinux.cfg/0
    in.tftpd[3142]: RRQ from 10.0.0.105 filename pxelinux.cfg/default
    in.tftpd[3143]: RRQ from 10.0.0.105 filename vesamenu.c32
    in.tftpd[3144]: RRQ from 10.0.0.105 filename pxelinux.cfg/default
    in.tftpd[3152]: RRQ from 10.0.0.105 filename splash.png
    in.tftpd[3153]: RRQ from 10.0.0.105 filename /vmlinuz
    in.tftpd[3154]: RRQ from 10.0.0.105 filename /vmlinuz
    in.tftpd[3155]: RRQ from 10.0.0.105 filename /vmlinuz
    in.tftpd[3156]: RRQ from 10.0.0.105 filename /vmlinuz
    in.tftpd[3166]: RRQ from 10.0.0.105 filename /vmlinuz
    in.tftpd[3176]: RRQ from 10.0.0.105 filename /vmlinuz
    in.tftpd[3178]: RRQ from 10.0.0.105 filename /vmlinuz

    and this is my APPEND:

    APPEND initrd=/initrd vga=789 persistent quiet splash loglevel=3

    Thanks

     

    UPDATE:

    An advance: moved 3 files to isolinux directory:

    vmlinuz

    rootfs

    initrd

     

    now the scrren show:

     

    “cannot find a valid root filesystem, droping to shell”

    Thanks

     

    #1685

    tomlohave
    Keymaster

    regular iso 2.0 ? if it’s case and if you use i386 version, replace you initrd file by this one :
    http://download.geexbox.org/releases/extra/initrd
    and add to the line APPEND something like this : nfsroot=192.168.1.10:/geexbox
    where here 192.168.1.10 is ip for nfs server and geexbox the directory containing your rootfs file

    #1688

    Elsurubi
    Participant

    tested the initrd..same results
    added nfsroot line…same result

    the NFS is working perfect
    the TFTP is ok too

    cannot find a valid root filesystem…

    thanks for your help!

    #1691

    tomlohave
    Keymaster

    i have retested and it works
    you can test this :
    add to the line APPEND initshell
    inside this shell :
    mkdir test
    ifconfig eth0 up
    udhcpc -s /bin/assign-ip
    ifconfig <--- here your network connection should be ready, with an ip obtained by your dhcp server mount -o rw,nolock ip_nfs_server:/directory_containing_rootfs /test if no complain, look inside /test if you file are reallly present And yes rootfs is the root filesystem My export : /var/lib/tftpboot$ ls -l geexbox/ total 123764 -rwxr-xr-x 1 thomas thomas 35 2011-10-16 15:32 assign-ip drwxr-xr-x 3 thomas thomas 4096 2011-10-13 17:42 EFI -rw-r--r-- 1 thomas thomas 24734074 2011-10-19 10:10 extra-fonts-nonfree_2.0-1_i686.opk -rw-r--r-- 1 thomas thomas 571516 2011-10-16 21:49 initrd drwxr-xr-x 4 thomas thomas 4096 2011-10-16 22:54 isolinux -rw-r--r-- 1 thomas thomas 97456128 2011-10-13 17:42 rootfs -rw-r--r-- 1 thomas thomas 3951072 2011-10-16 20:41 vmlinuz

    #1694

    Elsurubi
    Participant

    uDHCPC not found

    another command to obtain ip?

    #1697

    Elsurubi
    Participant

    SHELL RUNING:

    mkdir test ————————————————-OK, NO ERRORS
    ifconfig eth0 up ——————————————-OK, NO ERROR
    udhcpc -s /bin/assign-ip———————————UDHCPC NOT FOUND …using ifconfig eth0 xxx.xxx.xxx netmask xxxx broadcast xxx——————OK NO ERRORS
    ifconfig < — here your network connection should be ready, with an ip obtained by your dhcp server—-PERFECT, NO ERROR
    ping to nfs server PERFECT

    mount -o rw,nolock ip_nfs_server:/directory_containing_rootfs /test PERFECT NO ERROR
    if no complain, look inside /test if you file are reallly present ———-????? how can i test this?

    which command?

    looking inside /mnt/directory_containing_rootfs …………nothing here..

    how can i "look" inside this /test directory? where is this /test directory located?

    Thanks

    #1699

    tomlohave
    Keymaster

    I’ve downloaded this initrd just to be sure : and udhcpc is part of busybox, look :

    BusyBox v1.19.2 (2011-10-16 16:06:01 CEST) multi-call binary.
    Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
    and others. Licensed under GPLv2.
    See source distribution for full notice.

    Usage: busybox [function] [arguments]…
    or: busybox –list[-full]
    or: function [arguments]…

    BusyBox is a multi-call binary that combines many common Unix
    utilities into a single executable. Most people will create a
    link to busybox for each function they wish to use and BusyBox
    will act like whatever it was invoked as.

    Currently defined functions:
    [, [[, ash, bash, cat, cp, cut, dmesg, echo, eject, env, free, grep,
    halt, ifconfig, ls, mdev, mkdir, mknod, mount, mv, ping, poweroff, ps,
    pwd, reboot, rm, rmdir, route, sed, sh, sleep, switch_root, test, tr,
    udhcpc, umount

    So are you sure you are using the good initrd ?
    is there a file called assign-ip in /bin ?
    init should contain nfsroot, you can test with :
    cat /init | grep nfsroot

    #1718

    tomlohave
    Keymaster

    try this iso : http://download.geexbox.org/releases/extra/i386/latest-iso-devel.iso
    and add nfsroot=xxx.xxxx.xxx.xxx:/directory_to_rootfs

    #1719

    Elsurubi
    Participant

    1) ORIGINAL geexbox-2.0-i386.iso error:

    “cannot find a valid root filesystem, droping to shell”

    2) SAME ISO, INITRD provided for you later, copy the 3 files outside the “isolinux” directory (copy, NOT MOVE)

    + APPEND nfsroot=xxx.xxxx.xxx.xxx:/directory_to_rootfs

    error umont can´t umount /dev Device or resource BUSY

    32 seconds later…

    GEEXBOX ON!!!!
    but any changes can be “saved” (no persistence in add-ons , etc etc)

    3) The new ISO (devel), 3 files outside isolinux copied to inside , same message in booterror umont can´t umount /dev Device or resource BUSY”

    but 32 seconds later..

    TADA! everithing is fine, but again, any changes can be done in persistent maner

    sorry for my english AND THANKS for your GREAT HELP!

    i belive the problem is in the initdr file

    #1720

    tomlohave
    Keymaster

    ignore “can’t umount /dev” , not a problem for booting (it’s a temp dev file system to find disk, etc).
    For persistent, just add persistent=path-to_yourpersistent_file/casper-rw
    example :
    if casper rw is in /tftpboot/geexbox/casper-rw in your nfs server, and you export /tftpboot/geexbox, then add persistent=/casper-rw

    #1727

    Elsurubi
    Participant

    Sorry, i am complety lost with the casper -rw file

    searching inside FREENAS is no “casper” file (freenas use FREBSD)

    this is the /etc/exports file:

    /mnt/Sistema -alldirs,quiet -mapall=root -network 10.0.0.0 -mask 255.255.255.0

    #1728

    tomlohave
    Keymaster

    you should add a casper-rw file in your export fs containing geexbox files (see documentation how to create one)

    #1729

    Elsurubi
    Participant

    EVERYTHING PERFECTOO!!

    all system ok and RUNNING

    casper file created and persistence OK

    yhe new GEEXBOX is much better!!

    put “SOLVED” IN THE TITTLE

    and now…searching the rest of the forum whit the question…

    why the WETHER IS NOT WORKING?

    THANKS AGAIN!! YOU ROCK!!!!!

    #1732

    Elsurubi
    Participant

    ok..another question

    4 differents AVI files loaded… NO SUBTITTLES… 🙁
    rr.AVI
    rr.srt

    in same directory…YES (not working)

    loaded from OSD… YES (not working)

    missing codecs in this ISO perhaps ????

    thanks

    #1733

    tomlohave
    Keymaster

    Maybe a problem with fonts

Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.