cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 8:35 am

are start.elf & bootcode.bin close soure?

if not,how can i download souce.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 8:38 am

Yes they're closed

They don't run on the ARM they run on the GPU.
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 8:49 am

gsh wrote:Yes they're closed

They don't run on the ARM they run on the GPU.
but I want to disable gpu.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5963
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 8:53 am

Can't start the ARM core without the GPU.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 8:55 am

What do you mean disable? The GPU controls the memory refresh, calibration, power control, video scaling, video output, video encode, video decode and lots of other things that you need running.

It depends upon what you mean by GPU, but actually there are a number of blocks that are completely incorrectly described with the name GPU...

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 8:59 am

gsh wrote:What do you mean disable? The GPU controls the memory refresh, calibration, power control, video scaling, video output, video encode, video decode and lots of other things that you need running.

It depends upon what you mean by GPU, but actually there are a number of blocks that are completely incorrectly described with the name GPU...

Gordon
what ?GPU controls the memory refresh, calibration, power control?

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:03 am

cl17726 wrote:but I want to disable gpu.
Why? Maybe you just want to reduce the amount of memory allocated to the GPU? http://elinux.org/RPiconfig

cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:09 am

AndrewS wrote:
cl17726 wrote:but I want to disable gpu.
Why? Maybe you just want to reduce the amount of memory allocated to the GPU? http://elinux.org/RPiconfig
gsh say gpu can not be disable.

and how can i set gpu_mem=1?

User avatar
AndyD
Posts: 2331
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:11 am

cl17726 wrote:and how can i set gpu_mem=1?
As far as I know the minimum is 16.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:22 am

No you can't set gpu_mem=1 it requires a minimum amount of memory to control the system
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:23 am

AndyD wrote:
cl17726 wrote:and how can i set gpu_mem=1?
As far as I know the minimum is 16.
i want to modify start.elf,but arm-linux-gnueabihf-objdump is failed,and it is close source.

cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:28 am

gsh wrote:No you can't set gpu_mem=1 it requires a minimum amount of memory to control the system
i just try it.
when gpu_mem=1.it still reserved 16MB memory

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:29 am

No you can't modify it, it isn't ARM machine code it's VPU machine code
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5963
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 9:30 am

Well, that's because it's not an ARM binary.
If you really want to tinker with the GPU side of things, then this would be a starting point. https://github.com/hermanhermitage/videocoreiv

cl17726
Posts: 11
Joined: Tue Oct 08, 2013 1:24 am

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 10:22 am

ShiftPlusOne wrote:Well, that's because it's not an ARM binary.
If you really want to tinker with the GPU side of things, then this would be a starting point. https://github.com/hermanhermitage/videocoreiv
thx,i try it.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23646
Joined: Sat Jul 30, 2011 7:41 pm

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 10:33 am

cl17726 wrote:
AndyD wrote:
cl17726 wrote:and how can i set gpu_mem=1?
As far as I know the minimum is 16.
i want to modify start.elf,but arm-linux-gnueabihf-objdump is failed,and it is close source.
Perhaps if you indicate why you want to modify that code we will be able to suggest a different mechanism to achieve the same result, bearing in mind you are very unlikely to be able to make much progress otherwise.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
hojnikb
Posts: 128
Joined: Mon Jun 04, 2012 3:59 pm
Location: @Home

Re: are start.elf & bootcode.bin is close soure?

Sat Jan 11, 2014 2:39 pm

If your only objection is to run headless (eg, no video) and have as much ram dedicated t ARM as possible, 16MB is the minimum, than is reserved to GPU.
Because rpi's SoC is (as others pointed out) controlled by "GPU" or rather "GPU" is master, that controls everything. Even with hardcore thinkering, GPU still needs its memory to start itself and kickstart ARM. ARM will not work on its own.
+°´°+,¸¸,+°´°~ Everyone should have a taste of UK Raspberry Pie =D ~°´°+,¸¸,+°´°+
Rasberry Pi, SoC @ 1225Mhz :o, 256MB Ram @ 550Mhz, 16GB SD-Card, Raspbian


jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23646
Joined: Sat Jul 30, 2011 7:41 pm

Re: are start.elf & bootcode.bin is close soure?

Sun Jan 12, 2014 10:25 am

If you can tell us what you are trying to do we may be able to help, rather than you going through the perhaps ultimately fruitless task of hacking the bootloader.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

vintozver
Posts: 31
Joined: Thu Jun 01, 2017 2:16 am
Location: Bellevue, WA, USA

Re: are start.elf & bootcode.bin is close soure?

Mon Jun 05, 2017 12:02 pm

Could you add ipv6 support to bootcode.bin / start.elf?

I would be happy to boot PI from network, but specific requirement is "ipv6 only".

I could contribute if needed.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: are start.elf & bootcode.bin is close soure?

Mon Jun 05, 2017 4:12 pm

IPV6 theoretically could be implemented in bootcode.bin but it cannot be implemented in the bootrom... So although you could network boot it would require that you have an SD card with bootcode.bin on it...

Is that what you're asking?

It's also got to be implemented in < 2kb code to suitably fit without having to go and hand reduce the current code...

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

vintozver
Posts: 31
Joined: Thu Jun 01, 2017 2:16 am
Location: Bellevue, WA, USA

Re: are start.elf & bootcode.bin is close soure?

Tue Jun 06, 2017 11:24 pm

gsh wrote:So although you could network boot it would require that you have an SD card with bootcode.bin on it...
Is that what you're asking?
It's also got to be implemented in < 2kb code to suitably fit without having to go and hand reduce the current code...
Gordon
Correct, you got it right, sd card with bootcode.bin on it is just fine.
Something similar to the PC booting iPXE from USB stick, and then iPXE doing the rest of work...

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1436
Joined: Sat Sep 10, 2011 11:43 am

Re: are start.elf & bootcode.bin is close soure?

Wed Jun 07, 2017 7:56 am

So can you fit it in 2kbytes of ARM assembler?
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

vintozver
Posts: 31
Joined: Thu Jun 01, 2017 2:16 am
Location: Bellevue, WA, USA

Re: are start.elf & bootcode.bin is close soure?

Wed Jun 07, 2017 4:28 pm

gsh wrote:So can you fit it in 2kbytes of ARM assembler?
I need to do some homework before answering this question.
I will build ipxe for i386 with and w/o ipv6 support with the minimum of remaining options to see the difference.
I understand that command set is completely different but at least to estimate the possibility.

Give me a day/two.

vintozver
Posts: 31
Joined: Thu Jun 01, 2017 2:16 am
Location: Bellevue, WA, USA

Re: are start.elf & bootcode.bin is close soure?

Wed Jun 07, 2017 5:11 pm

Quick "build test" showed the results (rtl8139.rom):
62976 bytes without IPv6 support
68096 bytes with IPv6 support

Rest of features like http(s), menus and other stuff was turned off to keep the ROM minimal but still functional (PXE + TFTP only, and some other mandatory stuff).

Generally, we're talking about 5k growth. Honestly, 2k requirement is pretty tight.

What do you think, @gsh, worth a try?

Return to “Advanced users”