Current Server Time: 19:23 (Central Europe)

#apertus IRC Channel Logs

2013/09/30

Timezone: UTC


23:18
se6astian
good night!
23:18
se6astian
left the channel
00:04
dmj_nova
left the channel
08:27
PhilippeJ
joined the channel
09:01
se6astian
joined the channel
12:01
Bertl
morning everyone!
12:10
se6astian
hello!
12:11
se6astian
I am afraid I need some help with the TFTP setup ;)
12:13
Bertl
no problem, what is working so far and what are the issues?
12:13
se6astian
DCHP: I have a router that does DHCP, but I assume that wont do for this setup right?
12:14
se6astian
so I installed the dhcp3 server fo ubuntu as described on the wiki page
12:14
se6astian
can they work both at the same time on the same network?
12:15
Bertl
yes, they should be fine as the board uses bootp
12:16
Bertl
I presume you have a debian workstation and that one is the one used for building/debugging the zedboard, yes?
12:16
Bertl
s/debian/ubuntu/
12:17
Bertl
can you point me to the wiki page you are following?
12:18
se6astian
ubuntu 12.04 yes
12:19
se6astian
https://wiki.apertus.org/index.php?title=Axiom_Alpha_Prototype#Booting_the_Zedboard_via_TFTP
12:19
se6astian
so do I give the zedboad a fixed IP from my router dhcp?
12:19
se6astian
but how do I find out the zedboards mac address?
12:20
se6astian
I already prepared the netboot sd card
12:21
Bertl
no forget the router, configure the dhcpd to hand out dynamic IPs via bootp
12:23
Bertl
I do not see anything about dhcpd configuration on this wiki page?
12:23
se6astian
https://help.ubuntu.com/community/Installation/Netboot
12:25
Bertl
I don't see anything there either, anyway, you are using (isc) dhcpd, I presume?
12:26
se6astian
I follwed this guide: https://help.ubuntu.com/lts/installation-guide/i386/install-tftp.html
12:26
Bertl
do you have a dhcpd.conf in /etc?
12:26
se6astian
dhcp3-server
12:26
Bertl
we are talking dhcpd not tftp :)
12:27
se6astian
I have a /etc/dhcp3/dhcp.conf yes
12:27
Bertl
okay, that seems to be isc dhcp, please upload that config file
12:27
se6astian
its default so far
12:28
Bertl
I don't have an ubutu at hand
12:28
Bertl
(so I do not know the default :)
12:28
Bertl
pastebin.com
12:29
ApertusWeb8
joined the channel
12:29
Bertl
did you modify the sd card for the zedboard already or is it the default card?
12:30
ApertusWeb8
http://pastebin.com/kKVAtCqY
12:30
se6astian
I already put you boot.bin on it
12:30
se6astian
*your
12:30
Bertl
okay, good
12:30
se6astian
and that works, I see attempts to do network booting over console on the zedboard
12:30
ApertusWeb8
changed nick to: sebastian-linux
12:31
Bertl
okay, change the zedboard entry to this:
12:31
Bertl
(ah, what network do you use, local, and what do you want to use for the zedboard?)
12:33
Bertl
('ip a l' should give a hint about the local network)
12:33
se6astian
I use 192.168.10.100 - 192.168.10.150 as router DHCP range
12:33
Bertl
so that's your local range, yes?
12:33
se6astian
yes
12:34
Bertl
i.e. your ubuntu box has an IP in this range
12:34
Bertl
I'd suggest to use a different network for the zedboard to avoid confusing the router
12:34
se6astian
yes .121
12:35
Bertl
but if you like, you can also assign a static IP to the zedboard (on the router) and serve the same IP as dynamic IP from your ubuntu box
12:35
se6astian
yes thats what I wanted to do
12:35
se6astian
but since I dont know the zedboards mac address I had trouble to add it to the table :)
12:35
Bertl
is the zedboard conencted via gbit ethernet?
12:37
se6astian
yes
12:37
Bertl
to a gbit switch conencting it with the router and your workstation?
12:38
Bertl
i.e. do you have gbit speed between workstation and zedboard?
12:38
se6astian
yes
12:38
Bertl
good, and it is the same shared network you use for connecting the workstation to the outside, yes?
12:39
Bertl
does the workstation have more than one ethernet jack?
12:39
se6astian
same as to outside, no single ethernet
12:39
se6astian
* no, single ethernet
12:40
Bertl
okay, you are in front of the machine (or nearby)?
12:43
se6astian
yes
12:44
Bertl
okay, open a root terminal, check what your interface is
12:44
Bertl
(ip l l)
12:44
se6astian
eth0
12:44
Bertl
start tcpdump -vvnei eth0
12:44
Bertl
disconnect your ethernet cable and directly connect the zedboard to this ethernet jack
12:45
Bertl
then power up the zedboard, interrupt the bootloader
12:45
Bertl
(by pressing a key)
12:45
Bertl
and enter 'bootp'
12:46
Bertl
the zedboard will send bootp requests which will get dumped by the tcpdump
12:46
Bertl
they also contain the MAC address, write it down
12:49
Bertl
then adjust the dhcpd file to contain the following:
12:49
Bertl
http://pastebin.com/zG3MKEhC
12:49
Bertl
where YYY is your workstation and XXX ist the zedboard IP and correct the hardware ethernet address if necessary
12:50
se6astian
interrupt the bootloader on the zedboard, with a pushbutton on the zedboard or by sending commands via uart?
12:50
Bertl
via pressing a key on the uart terminal
12:50
se6astian
but actually the zedboard is sending boot requests all the time even without my interaction
12:50
sebastian-linux
left the channel
12:50
Bertl
okay, even better
12:51
Bertl
so it is probably already looping and trying to boot via tftp
12:52
Bertl
you probably need to define a subnet for your network to contain the configuration (in dhcpd)
12:52
Bertl
i.e. something like this:
12:55
Bertl
http://pastebin.com/gCNkHi7A
12:56
Bertl
if the config is fine, dhcpd should be able to start (i.e. not complaining) and should answer to the zedboard requests
12:56
Bertl
(check with the logs)
12:58
Bertl
the zedboard will get the 192.168.10.XXX IP and will request the /ZED/u-boot.scr" from tftp server at 192.168.10.YYY
12:58
Bertl
(all of this will go to /var/log/messages or separated log files)
13:00
se6astian
ok mac address intercepted
13:00
se6astian
dhcp.conf updated
13:00
ApertusWeb0
joined the channel
13:01
se6astian
http://pastebin.com/gCNkHi7A
13:01
ApertusWeb0
changed nick to: sebastian-linux
13:03
se6astian
is 00:0A:35:00:01:22 the mac address of your zedboard?
13:22
se6astian
it does something, not everything yet though: http://pastebin.com/3qeAu6Np
13:35
sashacohen
joined the channel
13:39
Bertl
okay, so .10.1 is your workstation?
13:49
se6astian
no 1.1 is the router
13:50
se6astian
sorry 10.1
13:50
se6astian
and 10.140 is my fileserver
13:51
se6astian
no wait 10.140 is the zedboard
13:57
Bertl
why do you send 10.1 as next server to the zedboard then?
13:58
Bertl
or to put it the other way round, what is your dhcpd config atm?
14:01
se6astian
exactly as you suggested it
14:01
se6astian
but the router does DHCP as well
14:01
Bertl
with XXX and YY?
14:01
se6astian
that might be interfering
14:01
se6astian
121 and 140
14:01
Bertl
pleas upload the currenten complete config and tell your router to not handle this IP
14:01
Bertl
IP/mac
14:02
Bertl
if that is not possible, you have to pick a separate network like 192.168.11.x
14:02
Bertl
the router must not answer for dhcp/bootp requests for the zedboard mac
14:02
se6astian
I currently have my router configured to hand out fixed IPs for 121 and 140, you mean I should disable that again?
14:03
Bertl
the router can hand out the IP for your workstation, that is fine, but it must ignore requests from the zedboard
14:03
se6astian
the router is currently set to DNSMasq enabled
14:03
se6astian
might that be the problem?
14:04
Bertl
when the router answers to the bootp/dhcp requests from the zedboard it is already wrong
14:04
Bertl
i.e. configure the router to _not_ answer any requests from the zedboard (regarding bootp/dhcpd)
14:04
se6astian
there are no bootp options in the router config
14:05
Bertl
if you cannot configure the router properly, you have two options:
14:06
Bertl
1) get a second nic (preferably gigabit) and connect the zedboard directly to the workstation
14:06
Bertl
2) try to configure the router to send the next-server option and the proper boot filename for the zedboard
14:09
se6astian
router does not respond to dhcp/bootp anymore
14:09
se6astian
now the zedboard doesnt find a source to boot from though
14:09
se6astian
how can I verify my workstation is set up properly in this regard
14:10
sebastian-linux
here is the dhcpd.conf: http://pastebin.com/7R6hxJw2
14:11
sebastian-linux
I reinit this conf with "sudo service networking restart" right?
14:25
Bertl
no, service dhcpd restart (or dhcpd3 or dhcp-server)
14:26
Bertl
the MAC is correct? i.e. your zedboard has the same as mine?
14:27
Bertl
and check with the log(s) what dhcp says when being restarted
14:27
sebastian-linux
thats what I just wanted to ask yes, it looks like it
14:28
Bertl
probably the hard-coded mac in the bootloader
14:28
Bertl
i.e. somehow it doesn't figure out the correct one, but that doesn't really matter
14:28
sebastian-linux
there is no dhc* service
14:29
Bertl
well, ubuntu/debian is different :)
14:30
Bertl
sudo /etc/init.d/networking restart
14:30
Bertl
(says google)
14:30
sebastian-linux
haha its now called: sudo service isc-dhcp-server
14:31
Bertl
that sounds more like it
14:31
se6astian
good, the zedboard finds a server to boot from
14:31
se6astian
next step
14:31
se6astian
TFTP error: 'File not found' (1)
14:31
se6astian
:)
14:31
Bertl
so it already requests the ZED/..
14:31
Bertl
good, you did configure the tftp service (and restart it? :)
14:32
Bertl
if so, tftp should also log the requests
14:32
Bertl
you then want to copy my ZED directory in the tftp dir
14:32
Bertl
(usually that is /var/lib/tftpboot
14:33
sebastian-linux
I followed this guide
14:33
sebastian-linux
http://www.davidsudjiman.info/2006/03/27/installing-and-setting-tftpd-in-ubuntu/
14:33
Bertl
but I'm pretty sure ubuntu/debian has a special place for it :)
14:33
sebastian-linux
and put everything in /tftpboot
14:33
Bertl
I doubt ubuntu uses /tftpboot?
14:33
sebastian-linux
not sure
14:34
Bertl
debian and debian derivatives hate putting anything in /
14:34
sebastian-linux
there is /var/lib/tftpboot does indeed
14:34
Bertl
and I don't think you want to mess with the xinetd config
14:35
Bertl
i.e. installing the tftp package should suffice
14:35
Bertl
(and I'd revert any additional changes you did)
14:35
sebastian-linux
moved the files to the correct place
14:35
sebastian-linux
lets see if that does the trick already
14:36
sebastian-linux
and we have lift off!
14:36
sebastian-linux
the zedboard boots
14:36
sebastian-linux
though it has a kernel panic after 1 second :)
14:36
Bertl
really? did you add the symlinks already?
14:37
sebastian-linux
ah, that could be it :)
14:46
se6astian
hurray now it seems to be working
14:47
se6astian
http://pastebin.com/KtGEdwu3
14:49
se6astian
ok now I gotta go to the supermarket :)
14:49
se6astian
bbs
14:52
sebastian-linux
left the channel
14:55
Bertl
looks like you are still missing a bunch of files
14:55
Bertl
(or symbolic links that is)
14:56
Bertl
at least system.bin and ramdisk.image.gz
14:57
Bertl
I also suggest to link the zImage to BERTL.xilinx/zImage
16:02
PhilippeJ
left the channel
16:52
sashacohen
left the channel
18:02
se6astian
strange, I mapped all the files with symlinks the same way
18:02
se6astian
will debug it tomorrow
18:02
se6astian
now I will prepare the press release
18:02
se6astian
sasha has overdone the reviewing a little :)
18:21
Bertl
overdone in what way?
18:22
Bertl
and regarding boot/symlinks: just upload the log file output tftpd writes
18:22
Bertl
(it should contain all the requests and replies, if not, it can be enabled by an option)
18:29
se6astian
overdone in the sence of changing the original meaning of some sentences
18:29
se6astian
I will check how to enable / or where the log files are
18:29
se6astian
I took a quick look at /var/log
18:29
se6astian
but there wasnt anything related
18:29
se6astian
systemd didn't contain anything either
18:30
Bertl
ah, well, looks like he misunderstood what you were trying to say ... so good that this was caught
18:30
Bertl
check who spawns tftpd, if it is xinetd, then the config is there
18:31
Bertl
i.e. in /etc/xinetd.d/tftp
18:31
Bertl
adding -v to server_args will give more verbosity
18:31
Bertl
(can be done repeatedly)
18:33
se6astian
thanks!
18:33
Bertl
np
20:31
se6astian
left the channel