rellermeyer / course_os

CS 439 course OS
BSD 3-Clause "New" or "Revised" License
38 stars 26 forks source link

tuning u-boot #1

Closed rellermeyer closed 10 years ago

rellermeyer commented 10 years ago

Currently, people must manually kick off the kernel in u-boot providing a command. We should look into how to auto-load the kernel.

stv8 commented 10 years ago

I'll give this one a shot.

brandong954 commented 10 years ago

Mind if I partner up with you on this one Sean?

brandong954 commented 10 years ago

Would that command happen to be "bootm 0x24DFC"? Is this what you would like to be automated, to where the user no longer has to type this in order to get the kernel to boot?

rellermeyer commented 10 years ago

Well, yes in some form that's what needs to be automated but my preliminary reading has concluded that we possibly have to change how we build the images.

brandong954 commented 10 years ago

And where can I find these readings you mention? =]

rellermeyer commented 10 years ago

I googled around so I can't quite remember anymore but ultimately I think I read the u-boot documentation on how to write boot scripts.

stv8 commented 10 years ago

Yeah I'm down Brandon. Mr. Rellermeyer, I had to tweak the qemu field in the config.mk file to find qemu correctly. Could I commit that?

stv8 commented 10 years ago

Brandon, I found a resource that would help with the loading the kernel automatically. Here, http://wiki.openwrt.org/doc/techref/bootloader/uboot.config I am just not sure where to put 'autostart', still trying to figure out how everything is working together.

rellermeyer commented 10 years ago

@stv8: I would not commit custom config.mk. The current version is for people who have qemu installed through their package system and in their PATH, which I would consider the default. You can always customize it by putting your installation into the PATH or you modify config.mk, it's up to everybody to decide.

brandong954 commented 10 years ago

Sean, once you get into the virtual board's console, you'll use "setenv" to set the environment variables.

i.e. "setenv autostart yes"

However, after you shut down the system, all environment variables are cleared, even if you "saveenv," which supposedly saves the environment variables to flash. We need to figure out how to make these environment variables permanent. Remember, we need to both commit in order to get credit, so try to save me some work if you can. I'll do the same.

stv8 commented 10 years ago

Hmm interesting. Yeah I will don't worry :) Are you going to be on campus around 2? We could meet up to catch up.

On Mon, Mar 17, 2014 at 12:43 PM, Brandon Gottesman < notifications@github.com> wrote:

Sean, once you get into the virtual board's console, you'll use "setenv" to set the environment variables.

i.e. "setenv autostart yes"

However, after you shut down the system, all environment variables are cleared, even if you "saveenv," which supposedly saves the environment variables to flash. We need to figure out how to make these environment variables permanent. Remember, we need to both commit in order to get credit, so try to save me some work if you can. I'll do the same.

Reply to this email directly or view it on GitHubhttps://github.com/rellermeyer/course_os/issues/1#issuecomment-37846595 .

Sean Villars

brandong954 commented 10 years ago

I will, but I'll be in class, then I was hoping to meetup with the professor before class, but not sure yet whether he'll be able to. If he can't, let's meetup if you're available.

stv8 commented 10 years ago

Okay sounds good, I'll be in the lab from 2 up until class.

On Mon, Mar 17, 2014 at 12:56 PM, Brandon Gottesman < notifications@github.com> wrote:

I will, but I'll be in class, then I was hoping to meetup with the professor before class, but not sure yet whether he'll be able to. If he can't, let's meetup if you're available.

Reply to this email directly or view it on GitHubhttps://github.com/rellermeyer/course_os/issues/1#issuecomment-37848424 .

Sean Villars

brandong954 commented 10 years ago

I think I might almost have a foundation for us to work on. Let me know if you start working on this so I can run you through where I am at.

stv8 commented 10 years ago

I'll be home in a bit if you want to go over it. What's your email?

On Mar 18, 2014, at 7:18 PM, Brandon Gottesman notifications@github.com wrote:

I think I might almost have a foundation for us to work on. Let me know if you start working on this so I can run you through where I am at.

— Reply to this email directly or view it on GitHub.

brandong954 commented 10 years ago

Do u facebook or google messenger?

On Mar 18, 2014, at 7:27 PM, Sean Villars notifications@github.com wrote:

I'll be home in a bit if you want to go over it. What's your email?

On Mar 18, 2014, at 7:18 PM, Brandon Gottesman notifications@github.com wrote:

I think I might almost have a foundation for us to work on. Let me know if you start working on this so I can run you through where I am at.

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

brandong954 commented 10 years ago

See commit: d4cbef5de23bf9862b35b761b1461f325773542a

stv8 commented 10 years ago

google messenger stvillars8@gmail.com

On Tue, Mar 18, 2014 at 7:54 PM, Brandon Gottesman <notifications@github.com

wrote:

See commit: 2baab6fhttps://github.com/rellermeyer/course_os/commit/2baab6f3363b1a90fdb28e35f296329322b18f13

Reply to this email directly or view it on GitHubhttps://github.com/rellermeyer/course_os/issues/1#issuecomment-38007137 .

Sean Villars

stv8 commented 10 years ago

See commit: 278c872, and d8de9ff I figured out a way to stack the images and it autoloads the kernel image without modification to versatile.h . I need to change the implementation before pushing to dev because I changed the kernel.ld file, and that might need to be changed back.

brandong954 commented 10 years ago

Looks sick man, nice work!

stv8 commented 10 years ago

Onto process abstraction.

brandong954 commented 10 years ago

Job well done Mr. Villars! =]