Making Picostation m2HP work

Adrian Chadd adrian at freebsd.org
Mon Jul 15 19:19:51 UTC 2013


... only one # ? There should be pages of it.

Once you do a tftpboot, do a printenv . Let's look at what uboot has
set "filesize" to.



-adrian

On 15 July 2013 11:10, hiren panchasara <hiren.panchasara at gmail.com> wrote:
> On Sun, Jul 14, 2013 at 12:13 PM, hiren panchasara
> <hiren.panchasara at gmail.com> wrote:
>> On Fri, Jul 12, 2013 at 1:58 PM, Adrian Chadd <adrian at freebsd.org> wrote:
>>> cool.
>>>
>>> So step #1 - what kind of SoC is it (7241) and wifi (ar9280) ?
>>>
>>> The SoC dictates which base config we "copy" when we build the kernel.
>>>
>>> The important bits for these SoCs are:
>>>
>>> * which SoC
>>> * for AR91xx/AR71xx - which ethernet switch and how it's wired up; the
>>> AR933x and AR724x have an internet switch so there's only one config
>>> * how much RAM
>>> * what's the flash layout - important for generating the image and
>>> populating the hints table with the flash layout
>>>
>>> But let's focus on getting a kernel netbooting first..
>>
>> Build kernel.AP91 with your buildscripts and trying to tftpboot the
>> board with that but getting following errors in /var/log/messages on
>> my tftpserver (my laptop)
>>
>> flymockour-l7 in.tftpd[11247]: tftpd: oack: Host is down - when I do
>> "tftpboot 0x80050000 kernel.AP91" and tftp transfer never gets done
>> (keeps timing out)
>>
>> I am not sure what this means but I will try putting switch in-between
>> my laptop and the board and see if I can make this thing to work.
>
> Adrian,
>
> Putting a switch between tftpserver and the board worked. (Thanks Rui).
>
> ar7240> printenv
> bootdelay=1
> baudrate=115200
> ethaddr=00:15:6d:0d:00:00
> mtdids=nor0=ar7240-nor0
> partition=nor0,0
> mtddevnum=0
> mtddevname=u-boot
> filesize=10000
> fileaddr=81000000
> serverip=192.168.1.254
> ethact=eth0
> mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),5760k(rootfs),256k(cfg),64k(EEPROM)
> bootcmd=bootm 0x9f050000
> bootargs=console=tty0 root=31:03 rootfstype=squashfs init=/init
> ipaddr=192.168.1.20
> stdin=serial
> stdout=serial
> stderr=serial
>
> Environment size: 452/65532 bytes
> ar7240> tftpboot 0x80050000 kernel.AP91
> Using eth0 device
> TFTP from server 192.168.1.254; our IP address is 192.168.1.20
> Filename 'kernel.AP91'.
> Load address: 0x80050000
> Loading: #
> done
> ar7240> go 0x80050100
> ## Starting application at 0x80050100 ...
>
> Its stuck here and not doing anything. What should I look into next?
>
> Thanks,
> Hiren
>
>>
>> Anybody with some clue what this means?
>>
>> Thanks,
>> Hiren
>>>
>>>
>>>
>>> -adrian
>>>


More information about the freebsd-embedded mailing list