Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    PXE / Netboot rpi3 recalbox

    Recalbox General
    pxe netboot rpi3 recalbox
    2
    13
    2962
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Chris Maughan
      Chris Maughan @Chris Maughan last edited by

      @chris-maughan this is my cmdline.txt that does not work
      root=/dev/nfs nfsroot=//192.168.1.15:/nfs/client1 rw ip=dhcp rootwait elevator=deadline fastboot noswap

      obviosly in my nfs share is the /boot files which contains the files "initrd.gz linux overlay recalbox"

      1 Reply Last reply Reply Quote 0
      • Substring
        Substring @Chris Maughan last edited by

        @chris-maughan Never tried netbooting recalbox for many reasons (not easy to set up, requires quite some skills, complicated to debug, etc ...)

        what do you call /boot_root? Is the kernel loaded at least ?

        I'm not sure we compiled NFS support in the kernel, to be honnest. It should be on its default value ... And remember the current recalbox is a 4.1 kernel

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 0
        • Chris Maughan
          Chris Maughan last edited by

          Ahhh i may have to recompile the kernel then. I thought nfs was default in 4.1?
          I have done pxe a few times im a linux user not winBlows 😉
          /boot_root is the readonly recalbox file in the boot dir... im playing more today so ill post back if i get her running

          Substring 1 Reply Last reply Reply Quote 0
          • Substring
            Substring @Chris Maughan last edited by Substring

            @chris-maughan Do you get any kernel error message when it should mount / ? The kernel option is the first error i thought of, but as I said, it's a vanilla 4.1 kernel (almost : just changed 2-3 options + patched some usbhid, so nothing linked to NFS)

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

            1 Reply Last reply Reply Quote 0
            • Chris Maughan
              Chris Maughan last edited by Chris Maughan

              Just say unable to mount none on /boot_root.. ill have a look at the kernel later

              Chris Maughan 1 Reply Last reply Reply Quote 0
              • Chris Maughan
                Chris Maughan @Chris Maughan last edited by

                @chris-maughan @substring do you know the usb/mmc boot process call for the recalbox filesytem file called recalbox in /boot? Its not in the cmdline
                Ta

                Substring 1 Reply Last reply Reply Quote 0
                • Substring
                  Substring @Chris Maughan last edited by

                  @chris-maughan we had a notice from NOOBS dev regarding the USB boot process, but haven't tried nor made anything inside recalbox to make it work. Other concerns to take care of before

                  Regarding the boot process, it's all based no the cmdline file : the root= specifies the device to be mounted as /, nothing more. Recalbox is made of 3 partitions : /, /boot and /recalbox/share. The latter is mounted during the init process depending on an external device, a network share or the internal SD.

                  Former dev - Please reply with @substring so that i am notified when you answer me
                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                  Chris Maughan 1 Reply Last reply Reply Quote 0
                  • Chris Maughan
                    Chris Maughan @Substring last edited by

                    @substring ok thanks, ill play some more

                    Substring 1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring @Chris Maughan last edited by

                      @chris-maughan i've quickly read through https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md how does the fstab look line on your nfs server ?

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      1 Reply Last reply Reply Quote 0
                      • Chris Maughan
                        Chris Maughan last edited by Chris Maughan

                        my nfs mount is not mounted in fstab on the server 😕 its a real directory shared via /etc/exports

                        @substring yer i tried to fudge it a little with rasbian but of course this is not rasbian. ill have to extract the image and have some more play time 🙂

                        Substring 1 Reply Last reply Reply Quote 0
                        • Substring
                          Substring @Chris Maughan last edited by

                          @chris-maughan If you ever succeed and feel like contributing to the wiki, i'd gladly review and test it 😉

                          Former dev - Please reply with @substring so that i am notified when you answer me
                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                          1 Reply Last reply Reply Quote 0
                          • Chris Maughan
                            Chris Maughan last edited by Chris Maughan

                            @ Substring ok coool. so at present netboot on the pi3 is a little hit and miss.

                            heres my fstab on the recalbox share

                            proc /proc proc defaults 0 0
                            devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
                            tmpfs /dev/shm tmpfs mode=0777 0 0
                            tmpfs /tmp tmpfs mode=1777 0 0
                            tmpfs /var tmpfs mode=1777 0 0
                            tmpfs /run tmpfs mode=1777 0 0
                            sysfs /sys sysfs defaults 0 0

                            sometimes it takes the kernel sometimes it doesnt and then restarts the dhcp process then fails.
                            so far i have extracted the squashfs recalbox file to my nfs/root so in effect if/when i get it to weork the rootfs will be a shared folder on a server rather than a ram disk, soon as i get some time ill have another stab at it, but at the moment im at work.

                            the reasoning behind me trying to do this. i would like to have multiple rpi3 running my recal box build but i want them to be exactly the same build. i know i could just copy the image to other cards but this is more fun/interesting 😉

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Want to support us ?

                            62
                            Online

                            100.0k
                            Users

                            28.1k
                            Topics

                            187.1k
                            Posts

                            Copyright © 2021 recalbox.com