Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-06-02 Thread IntelMiner via ipxe-devel
Hi team,

I finally had some time to sit down and poke at this again.

I went ahead and wiped my old git copy and resynced from scratch just to make 
sure there weren't any lingering issues with testing. 

I upgraded to GCC 11.1.0 in the meantime, however I still seem to be getting 
the infiniband errors I mentioned previously @stappersg as well as another 
error, though the build continues after this first error in the "encode" library

Running a standard `make -j16` shows this error, but continues

```
enc/encode.c:1435:20: error: argument 5 of type 'const uint8_t *' {aka 'const 
unsigned char *'} declared as a pointer [-Werror=vla-parameter]
 1435 | const uint8_t* input_buffer, size_t* encoded_size,
  | ~~~^~~~
In file included from enc/encode.c:9:
./include/brotli/encode.h:293:19: note: previously declared as a variable 
length array 'const uint8_t[*encoded_size]' {aka 'const unsigned 
char[*encoded_size]'}
  293 | const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
  | ~~^~~~
enc/encode.c:1436:14: error: argument 7 of type 'uint8_t *' {aka 'unsigned char 
*'} declared as a pointer [-Werror=vla-parameter]
 1436 | uint8_t* encoded_buffer) {
  | ~^~
In file included from enc/encode.c:9:
./include/brotli/encode.h:295:13: note: previously declared as a variable 
length array 'uint8_t[input_size]' {aka 'unsigned char[input_size]'}
  295 | uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]);
  | ^

```

After that it will switch to the bin-arm64-efi ipxe build, before eventually 
erroring out with

```
drivers/infiniband/flexboot_nodnic.c: In function 'flexboot_nodnic_create_qp':
drivers/infiniband/flexboot_nodnic.c:368:53: error: implicit conversion from 
'enum ib_queue_pair_type' to 'nodnic_queue_pair_type' [-Werror=enum-conversion]
  368 |  status = nodnic_port_create_qp(&port->port_priv, qp->type,
  |   ~~^~
drivers/infiniband/flexboot_nodnic.c: In function 'flexboot_nodnic_destroy_qp':
drivers/infiniband/flexboot_nodnic.c:409:45: error: implicit conversion from 
'enum ib_queue_pair_type' to 'nodnic_queue_pair_type' [-Werror=enum-conversion]
  409 |  nodnic_port_destroy_qp(&port->port_priv, qp->type,
  |   ~~^~
```

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-853112641___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-05-14 Thread Kevin Hellemun via ipxe-devel
Im on macos and cant seem to build this for rpi4. I tried using a vargant box 
based on ubuntu but no luck there neither. Any pointers on how i could get this 
build for rpi4? 

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-841462736___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-04-06 Thread Peter Šurda
@IntelMiner Check here for my other posts/comments for more info:

- how to use MAAS images on Pi: 
https://discourse.maas.io/t/raspbery-pi-4-maas-images/4376/5?u=petersurda
- auto-boot PXEv4 from the UEFI firmware: 
https://github.com/tianocore/edk2-platforms/commit/f88bff4d000c69b1135969dbeafccaeb782dcdf3#r48792258

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-813839940___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-04-04 Thread Geert Stappers
> I ran into an ipxe build error with some junk relating to "infiniband" 
> (possibly an issue with using GCC 10.2?) but commenting that out fixed it

Please elaborate (in another issue as this issue).

> Hopefully this thread helps others in future too

Yes, we aim for a better world.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-813025021___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-04-04 Thread IntelMiner
@PeterSurda Update!

It took some finesseing to get it to work on my build box (Gentoo needed the 
`iasl` package for those relevant files)

I ran into an ipxe build error with some junk relating to "infiniband" 
(possibly an issue with using GCC 10.2?) but commenting that out fixed it

Embedding my boot script seemed to work as well. It pulls down a kernel + 
initrd and (attempts) to boot them

However it now hangs at

`EFI stub: Booting Linux Kernel...`
`EFI stub: Generating empty DTB`
`EFI stub: generating boot services and installing virtual address map...`

But I know that's (probably) outside the scope of iPXE and likely a kernel 
configuration issue on my side

Thank you very much for all your help however :) Hopefully this thread helps 
others in future too

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-813004102___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-03-29 Thread IntelMiner
I will give this a try in a few days and report back, thank you @PeterSurda!

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-809059667___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-03-27 Thread Peter Šurda
So it looks like netboot.xyz does internally use pipxe, and researching did 
help me find out how to build pipxe for RPi4. Here is a condensed version:

1. manually update all submodules, in `edk2`, `edk2-platforms`, `edk2-non-osi` 
and do `git pull origin master`
2. edit the Makefile, replace `RPi3` with `RPi4`
3. also in the Makefile, disable git submodule update as it will then revert 
the update (just comment the line `git submodule update --init --recursive`)
4. also in the Makefile, change `IPXE_TGT` to `bin-arm64-efi/snp.efi`
4. run `make`

The resulting EFI file seems to work OK on my RPi4.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-808703259___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-03-26 Thread Peter Šurda
@IntelMiner I'm in the same situation as you. I think this project doesn't 
support Raspberry Pi 4. However, https://github.com/netbootxyz/netboot.xyz 
does. I'm now trying to find out how to build it with your own menu.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-808569343___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-03-25 Thread IntelMiner
Additional: While I was writing the above comment. My Pi 4 booted, gave a "net0 
no such network device" error. Looped through the "Start PXE over IPv4" and 
then IPv6 

And then actually found net0 and attempted to boot!

Could this perhaps be a bug in either iPXE or the UEFI firmware I'm using?

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-806958701___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2021-03-25 Thread IntelMiner
Apologies for the necro-post. But this was one of the first results in Google 

I've been tearing my hair out for several hours now trying to get a scripted 
iPXE to boot on my Raspberry Pi 4. I've tried using both the iPXE upstream, as 
well as the version 1.20.1 build that @rgl's repository provides 

No matter what version I build, executing a `make bin-arm64-efi/ipxe.efi 
EMBED=myscript.ipxe` or even building without the script builds a binary that 
boots, but then does not show any ethernet devices :(

I've got the latest EFI 1.24 firmware running, and have also tried 1.16 and 
1.17 due to at least one thread noting that it may have errors netbooting 

I've found a few pre-made iPXE binaries that do already work, but I want to 
embed a script in to mine for HTTP booting

Is `make bin-arm64-efi/ipxe.efi` still the correct build command for the 
Raspberry Pi 4? Or am I missing some step somewhere

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-806956094___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2020-06-14 Thread Rui Lopes
Forgot to update this issue... but I have to report that upstream ipxe (1.20.1) 
works fine with rpi4-uefi (you need v1.15 for rpi4+8gb support).

FYI, I have a vagrant environment for building ipxe and uefi at 
https://github.com/rgl/raspberrypi-uefi-edk2-vagrant.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-643778848___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2020-06-14 Thread Rui Lopes
Closed #2.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#event-3441766011___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2020-06-14 Thread blitmap
So this looks promising:

https://rpi4-uefi.dev/v1-13-release-for-pi-4/


-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-643775114___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2020-03-26 Thread Andrei Warkentin
Hi folks.

https://rpi4-uefi.dev/ tracks the Pi 4 UEFI. GENET driver is developed and 
currently being cleaned up and soon to be upstreamed - and the expectation is 
that it should work with iPXE.

Feel free to join us on the #rpi4-uefi-dev channel on the Arm 
Developer-Ecosystem Discord server (https://discordapp.com/invite/fqRhc8y)

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-604840301___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2019-12-12 Thread Michael Brown
They are completely unrelated projects.

piPXE relies on UEFI.  The UEFI support for the Pi 4 is in the process of being 
merged to the upstream edk2-platforms repositories.  Once that is done, it 
should be possible to invoke piPXE and have it work with any USB network 
adapters.

AFAIK the onboard NIC is (embedded) USB on the Pi 3B+ and earlier, but may be 
PCIe on the Pi 4.  If this is the case, then a suitable NIC driver for iPXE 
will need to be written.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-565088056___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2019-12-10 Thread Geert Stappers
On Tue, Dec 10, 2019 at 06:12:41PM +, Martin Habets wrote:
> On 10/12/2019 18:07, Rui Lopes wrote:
> } }  please elaborate
> > I mean, does the |pipxe| project has plans for having iPXE running in the 
> > raspberry pi 4 firmware?
> > 
> > Currently, it seems there's beta support for PXE booting at
> > https://github.com/Hexxeh/rpi-firmware but how about iPXE? Are the
> > two projects related? Working together?
> > 
> > Sorry, I didn't notice/look-for there was even a IRC channel / mailing 
> > list! Will ask there.
> > 
> 
> There was a bunch of discussion last week on the IRC channel regarding
> pipxe on raspberry pi, I believe with the pipxe maintainer (or one
> of them).
> Sorry I did not follow which pi version they were discussing.
> 


Thanks for the reminder on  #ipxe at  irc.freenode.org

 


Groeten
Geert Stappers
-- 
Leven en laten leven
___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2019-12-10 Thread Martin Habets
There was a bunch of discussion last week on the IRC channel regarding pipxe on 
raspberry pi, I believe with the pipxe maintainer (or one of them).
Sorry I did not follow which pi version they were discussing.

Martinh

On 10/12/2019 18:07, Rui Lopes wrote:
> I mean, does the |pipxe| project has plans for having iPXE running in the 
> raspberry pi 4 firmware?
> 
> Currently, it seems there's beta support for PXE booting at 
> https://github.com/Hexxeh/rpi-firmware 
> ,
>  but how about iPXE? Are the two projects related? Working together?
> 
> Sorry, I didn't notice/look-for there was even a IRC channel / mailing list! 
> Will ask there.
> 
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub 
> ,
>  or unsubscribe 
> .
> 
> 
> ___
> ipxe-devel mailing list
> ipxe-devel@lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
> 
___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel


Re: [ipxe-devel] [ipxe/pipxe] Raspberry Pi 4? (#2)

2019-12-10 Thread Rui Lopes
I mean, does the `pipxe` project has plans for having iPXE running in the 
raspberry pi 4 firmware?

Currently, it seems there's beta support for PXE booting at 
https://github.com/Hexxeh/rpi-firmware, but how about iPXE? Are the two 
projects related? Working together?

Sorry, I didn't notice/look-for there was even a IRC channel / mailing list! 
Will ask there.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/pipxe/issues/2#issuecomment-564159232___
ipxe-devel mailing list
ipxe-devel@lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel