From: Steven Stallion <sstallion@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] ARM and u-boot
Date: Sat, 1 Jun 2013 21:06:55 -0700 [thread overview]
Message-ID: <CAGGHmKF0sqten+Y-DkMnBmHZ0e9sOD2AbQGefA=DzrTcZLLVFQ@mail.gmail.com> (raw)
In-Reply-To: <20130601071926.GA2936@polynum.com>
[-- Attachment #1: Type: text/plain, Size: 2549 bytes --]
On Sat, Jun 1, 2013 at 12:19 AM, <tlaronde@polynum.com> wrote:
> Since it has u-boot installed and that the mapping of the flash is given
> does one know if one could build a Plan9 kernel, write it (via
> u-boot) to the flash and be able to boot?
>
It's quite possible. I even have it working. :-)
A couple of months ago I submitted a patch to the U-Boot mainline to add
formal support for Plan 9 kernels. It has since been accepted. At the same
time I also submitted a patch to Geoff which has been gathering dust to add
uImage support to 5l (patch/arm-uboot) - a requirement to exist nicely with
the loader. The exynos5 port that I am working on (Arndale Board, Samsung
Chromebook) relies on this exclusively.
If you are familiar with setting up a BSP for U-Boot, it's fairly
straightforward to boot a Plan 9 kernel from either a filesystem (ie. FAT,
ext2, etc.) or via TFTP. I tend to use TFTP while testing new kernels,
though longer lived kernels will likely end up sitting in a FAT - I haven't
quite decided yet.
Since you seem to be keen console spew, this is what a booted Arndale looks
like with the above patches:
U-Boot 2013.01.-rc1-00002-g67fd7e7-dirty (May 10 2013 - 23:58:01) for
ARNDALE5250
CPU: Exynos5250@1000MHz
Board: for ARNDALE5250
I2C: ready
DRAM: 2 GiB
WARNING: Caches not enabled
Checking Boot Mode ... SDMMC
MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1, EXYNOS DWMMC: 2
In: serial
Out: serial
Err: serial
Net: No ethernet found.
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 1 Ethernet Device(s) found
Hit any key to stop autoboot: 0
Waiting for Ethernet connection... done.
Using asx0 device
TFTP from server 10.0.0.8; our IP address is 10.0.0.10
Filename '/sys/src/9/exynos/9arndale'.
Load address: 0x42000000
Loading: #################################################################
###############################################
done
Bytes transferred = 1510728 (170d48 hex)
## Booting kernel from Legacy Image at 42000000 ...
Image Name: 9arndale
Image Type: ARM Plan 9 Kernel Image (uncompressed)
Data Size: 1510664 Bytes = 1.4 MiB
Load Address: b1000000
Entry Point: b1000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
## Transferring control to Plan 9 (at address b1000000) ...
Plan 9 from Bell Labs
...
Cheers,
Steve
[-- Attachment #2: Type: text/html, Size: 3675 bytes --]
next prev parent reply other threads:[~2013-06-02 4:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-01 7:19 tlaronde
2013-06-01 8:04 ` lucio
2013-06-01 9:30 ` tlaronde
2013-06-01 13:31 ` erik quanstrom
2013-06-01 15:02 ` tlaronde
2013-06-01 19:29 ` tlaronde
2013-06-01 22:10 ` erik quanstrom
2013-06-02 6:14 ` tlaronde
2013-06-02 4:06 ` Steven Stallion [this message]
2013-06-02 6:02 ` tlaronde
2013-06-02 13:09 ` erik quanstrom
2013-06-02 15:50 ` Richard Miller
2013-06-03 3:53 ` erik quanstrom
2013-06-03 4:29 ` Skip Tavakkolian
2013-06-03 10:35 ` Richard Miller
2013-06-03 12:34 ` Skip Tavakkolian
2013-06-03 16:58 ` Bakul Shah
2013-06-03 18:21 ` Richard Miller
2013-06-03 18:35 ` Bakul Shah
2013-06-03 18:40 ` Richard Miller
2013-06-03 10:41 ` Richard Miller
2013-06-03 13:19 ` erik quanstrom
2013-06-03 18:21 ` Steven Stallion
2013-06-03 18:43 ` erik quanstrom
2013-06-03 20:02 ` Steven Stallion
2013-06-03 20:13 ` erik quanstrom
2013-06-03 20:19 ` erik quanstrom
2013-06-03 5:40 ` Steven Stallion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGGHmKF0sqten+Y-DkMnBmHZ0e9sOD2AbQGefA=DzrTcZLLVFQ@mail.gmail.com' \
--to=sstallion@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).