Current Server Time: 09:30 (Central Europe)

#apertus IRC Channel Logs

2013/08/26

Timezone: UTC


22:04
Bertl
ApertusWeb0: hello gabe!
22:04
ApertusWeb0
hi!
22:05
ApertusWeb0
who is this?
22:05
Bertl
ApertusWeb0: try /nick gabe
22:05
Bertl
then try /whois Bertl
22:05
ApertusWeb0
changed nick to: gabe2
22:05
gabe2
ok great
22:05
gabe2
I haven't used IRC in many years!
22:06
gabe2
I was just going to try and get everything setup to boot off tftp
22:06
Bertl
http://www.irchelp.org/irchelp/irctutorial.html
22:06
Bertl
excellent! and how is your progress/status?
22:07
gabe2
literally just getting started
22:07
gabe2
I had a question though
22:07
gabe2
are you using the linux install on the SD card that came with the Zedboard?
22:07
Bertl
no, but I started with it
22:07
Bertl
we have switched to our own images by now
22:08
gabe2
ok
22:08
gabe2
yeah because I noticed on the wiki "Connect the Zedboard via Ethernet and have a DHCP/BOOTP and TFTP server running somewhere on the network. "
22:08
gabe2
which made me assume some sort of linux build on there already
22:08
gabe2
so I should probably get the latest image to load onto the SD Card
22:08
Bertl
the bootp/dhcp and tftp have to run on some kind of server/pc
22:09
Bertl
do not forget, you want to boot the zedboard via tftp, so it has to boot from some kind of server
22:09
gabe2
right
22:09
Bertl
can be identical to the 'development' machine or can be a separate unit
22:09
gabe2
I assume the dhcp connection can come from my router though?
22:10
Bertl
sure, as long as it hands out IPs and tftp servers to the bootloader it's fine
22:13
gabe2
so after the zedboard gets an ip from the router with DHCP the bootloader requests the ip of the tftp server from the router? I plan on setting up tftp on my ubuntu development box
22:13
Bertl
the zedboard's bootloader (u-boot) uses bootp to request the IP, which is handled by most dhcp servers (if configured properly)
22:14
Bertl
and yes, it then takes the information returned to request scripts and images via tftp
22:15
gabe2
ok. I'll have to look into my router settings about telling it the ip of the tftp server
22:16
gabe2
i'll have to see if it supports that
22:16
Bertl
the first step probably is to update the bootloader with the boot.bin on the wiki
22:17
Bertl
it will then send out the bootp requests automatically which should help you to test and configure the router
22:17
Bertl
http://vserver.13thfloor.at/Stuff/AXIOM/TFTP/boot.bin
22:17
Bertl
(this is the latest boot.bin atm)
22:18
gabe2
ok. i'll do that now
22:19
Bertl
dmj_nova1: promised me to put the 'reset environment' commands somewhere on the wiki, but I don't see them there, so give me a minute to dig them out
22:21
gabe2
ok thanks
22:21
Bertl
you just need to interrupt the autoboot, and issue:
22:21
Bertl
env default -f
22:21
Bertl
saveenv
22:21
Bertl
reset
22:22
Bertl
that should configure u-boot properly after boot.bin was updated
22:23
gabe2
can I use any standard image writing software to write the boot.bin to the sdk card?
22:24
Bertl
it's a file not an image actually, so just copy it there (and remove the existing one)
22:24
Bertl
this presumes that you have an SD card to boot from
22:24
gabe2
ah. ok yeah I just realized when I plugged it in that it's a file
22:42
gabe2
so after I update the boot.bin, if I power up the zedboard do I have to re-issue those commands every time I start it up?
22:42
Bertl
no, just the first time, the environment is stored in the board
22:43
gabe2
ok. looks like it might be working
22:44
gabe2
I have the zed-boot prompt
22:44
Bertl
okay, if you do not interrupt the boot (after powering up the board) it will automatically continue with bootp and tftp
22:48
gabe2
ok. what's the easiest way to check if it got an ip from the router? it appears I can't use usual linux commands like ifconfig
22:48
Bertl
not at the bootloader ... at this point, there is no linux/kernel running
22:50
Bertl
the first line you should look out for (in u-boot) is this one:
22:50
Bertl
Requesting Boot Script via TFTP...
22:50
Bertl
well, actually you get another one earlier:
22:50
Bertl
Scripted Boot via TFTP...
22:51
Bertl
(both will tell you that your boot.bin is up-to-date and working as expected)
22:52
Bertl
after that, you get a short delay (phy reset and auto negotiation)
22:52
Bertl
then something like this:
22:52
Bertl
Link is now at 1000Mbps!
22:52
Bertl
BOOTP broadcast 1
22:52
Bertl
..
22:52
gabe2
okay. yes I see that now
22:52
Bertl
if that goes right, there should follow a line like this:
22:52
gabe2
after typing the "reset" command to see it cleanly
22:52
Bertl
TFTP from server 192.168.2.1; our IP address is 192.168.2.88
22:53
Bertl
(with your IPs of course)
22:53
gabe2
ok. yeah I'm installing the TFTP server in Ubuntu right now
22:54
gabe2
will their be an indication if it got an ip address but no IP for the TFTP server? it says the link is at 100 mbps and it keeps trying the broadcast, with no indication if it got an IP
22:55
Bertl
as long as you get BOOTP lines, there is no adequate answer from a bootp server
22:55
gabe2
ok
22:56
Bertl
if your router doesn't answer to them, I wouldn't bother configuring it, just install dhcpd on your linux devel machine and provide bootp from that one
22:56
gabe2
yeah, that sounds good
22:56
Bertl
i.e. the router won't be in the way and you can configure your own private network between linux devbox and zedboard
22:57
Bertl
maybe even use a GBit network card/port on your machine as the zedboard has gigabit
22:58
jucar2
left the channel
22:58
jucar1
joined the channel
23:01
gabe2
if I connect them directly I think I'd have to use a cross-over cable. Not sure if I have one handy. I might have a switch around I could use.
23:01
Bertl
nah, shouldn't be a problem
23:03
Bertl
(gigabit ethernet phys basically all have auto crossover)
23:10
gabe2
good to know
23:38
gabe2
it's taking a bit of time to get this setup :) I'm adding the ethernet port from my computer to virtual box (only the wifi was routed as eth0)
23:39
Bertl
hmm, how does virtual box come into play?
23:39
gabe2
i'm running Ubuntu on my mac
23:39
Bertl
ah, okay :)
23:39
gabe2
that's why there's some instructions on it on the wiki
23:46
jucar1
left the channel
23:46
jucar1
joined the channel
23:50
gabe2
left the channel
23:51
ApertusWeb1
joined the channel
23:51
ApertusWeb1
changed nick to: gabe2
23:56
gabe2
left the channel
23:57
ApertusWeb0
joined the channel
23:57
ApertusWeb0
changed nick to: gabe2
00:16
gabe2
have you used the ISC DHCP server?
00:16
Bertl
yes
00:17
gabe2
do you have to enter the mac address for the zedboard ethernet? the examples I see indicate that
00:17
gabe2
to get bootp to work
00:17
Bertl
yes
00:17
Bertl
you get that in the logs once your dhcpd is listening
00:18
Bertl
(i.e. as mac blabla requesting ...)
00:18
Bertl
you basically do not want to open the dhcpd for other addresses, as it will compete with your router :)
00:19
gabe2
that makes sense
00:20
gabe2
so my config should have an entry something like this: host router { hardware ethernet 08:00:2b:4c:59:23; fixed-address 192.168.0.21; filename "ZED"; }
00:20
gabe2
where the ZED folder is in my tftp folder
00:21
Bertl
filename "/ZED/u-boot.scr"
00:21
gabe2
ok
00:21
Bertl
and the mac will be more like this: 00:0A:35:00:01:22
00:21
Bertl
you also want to specify a 'next-server' which is the TFTP server
00:34
gabe2
left the channel
00:37
jucar2
joined the channel
00:38
jucar1
left the channel
00:49
ApertusWeb4
joined the channel
00:49
ApertusWeb4
changed nick to: gabe2
00:52
gabe2
I was able to resolve the tftp file not found issue. i'm a bit further, but I'll have to resume later. right now it states "a panic occurred, switching back to text console"
00:52
gabe2
if I can't figure it out later I'll save the stack trace and see if you have any ideas
00:52
Bertl
well, sounds good, I presume the panic happens in the booted linux kernel, yes?
00:55
gabe2
yes
00:56
Bertl
so maybe you are booting with the wrong device tree, in any case, the tftp boot part should be fine if you get that far
00:56
gabe2
it starts loading a lot of things like USB Mass Storage driver, linux video capture, sdhci, mmc0, etc.
00:57
Bertl
just upload the entire bootup log when you find the time and let me know (pastebin)
00:57
Bertl
I'll take a look when I'm around and probably can tell you what goes wrong
00:57
gabe2
great thanks. I appreciate all the help!
00:58
Bertl
you're welcome!
00:58
gabe2
I'm using the ZED.zip from here: https://github.com/apertus-open-source-cinema/alpha-hardware/tree/master/Zedboard-Files/TFTP-booting
00:58
gabe2
I presume that's the one I should be using
00:58
Bertl
might already be a little outdated, but it should boot
01:01
gabe2
ok. I'll send you a log file. talk to you later. Thanks again!
01:01
gabe2
left the channel
02:01
jucar2
left the channel
02:01
jucar1
joined the channel
02:11
jucar2
joined the channel
02:11
jucar1
left the channel
02:39
jucar1
joined the channel
02:39
jucar2
left the channel
03:56
jucar1
left the channel
03:56
jucar1
joined the channel
04:16
jucar2
joined the channel
04:17
jucar1
left the channel
04:21
jucar1
joined the channel
04:22
jucar2
left the channel
04:49
jucar1
left the channel
04:49
jucar1
joined the channel
05:21
jucar2
joined the channel
05:22
jucar1
left the channel
05:33
jucar2
left the channel
05:34
jucar1
joined the channel
05:45
jucar1
left the channel
06:00
jucar1
joined the channel
06:45
se6astian
joined the channel
07:16
jucar2
joined the channel
07:17
jucar1
left the channel
07:24
jucar2
left the channel
07:24
jucar1
joined the channel
07:29
jucar1
left the channel
07:47
jucar1
joined the channel
08:28
jucar2
joined the channel
08:29
jucar1
left the channel
08:36
jucar2
left the channel
08:36
jucar1
joined the channel
09:39
jucar1
left the channel
09:39
jucar2
joined the channel
10:37
Bertl
morning everyone!
10:39
se6astian
hello!
11:02
jucar1
joined the channel
11:03
jucar2
left the channel
11:17
jucar1
left the channel
11:34
jucar1
joined the channel
12:03
se6astian
need to go to the supermarket
12:03
se6astian
bbs
12:54
jucar2
joined the channel
12:57
jucar1
left the channel
13:18
se6astian
back
14:01
jucar1
joined the channel
14:03
jucar2
left the channel
14:20
jucar1
left the channel
14:37
jucar1
joined the channel
14:44
jucar1
left the channel
14:58
jucar1
joined the channel
15:49
jucar2
joined the channel
15:50
jucar1
left the channel
16:01
jucar2
left the channel
16:02
jucar1
joined the channel
16:04
jucar1
left the channel
16:11
se6astian
left the channel
16:22
jucar1
joined the channel
16:48
jucar1
left the channel
16:48
jucar2
joined the channel
16:58
se6astian
joined the channel
17:04
jucar2
left the channel
17:18
jucar1
joined the channel
18:31
jucar1
left the channel
18:47
jucar1
joined the channel
19:00
jucar2
joined the channel
19:00
jucar1
left the channel
19:07
jucar2
left the channel
19:07
jucar1
joined the channel
20:00
se6astian
left the channel
20:05
Bertl
dmj_nova1: hmm, not sure I already mentioned it, but the PMOD debug is now shared on OSHPARK, so on http://oshpark.com/shared_projects/page/3 you should find it after a search for apertus (or on the next page)
20:06
Bertl
ah, here seems to be a permanent link: http://oshpark.com/shared_projects/OhXV1RwT
20:06
Bertl
if you still want to try to solder it yourself, simply order a pack and let me know, I send you the details for the parts
20:31
jucar1
left the channel
20:47
jucar1
joined the channel
21:28
jucar2
joined the channel
21:29
jucar1
left the channel
21:40
jucar2
left the channel
21:55
jucar1
joined the channel