These are chat archives for SmingHub/Sming

26th
Dec 2015
Dmitry Kireev
@kireevco
Dec 26 2015 00:00
No, same issue
I mean same issue with a straight app
Wtf, 9am!!??
Sorry to bug you, good night!!!
Dmitry Kireev
@kireevco
Dec 26 2015 00:19
@raburton ok,so no zeroes any more, but still [W]sec 3fc error
Richard Antony Burton
@raburton
Dec 26 2015 08:25
@kireevco tried to build qemu without sucess:
raburton@debian:~/dev/qemu-xtensa/build$ make
  LINK  xtensa-softmmu/qemu-system-xtensa
hw/xtensa/xtfpga.o: In function `lx_init':
/home/raburton/dev/qemu-xtensa/hw/xtensa/xtfpga.c:318: undefined reference to `load_device_tree'
collect2: error: ld returned 1 exit status
Makefile:193: recipe for target 'qemu-system-xtensa' failed
make[1]: *** [qemu-system-xtensa] Error 1
Makefile:184: recipe for target 'subdir-xtensa-softmmu' failed
make: *** [subdir-xtensa-softmmu] Error 2
but got to go to work now so can't play any longer...
hreintke
@hreintke
Dec 26 2015 08:43

@raburton : Yes, I have had the csum err too.
It can be solved by updating the the ld file.

  iram1_0_seg :                           org = 0x40100000, len = 0x9000
  irom0_0_seg :                           org = 0x4020A000, len = 0x52000

Increase the len of the iram1_0_seg so that it fits the length to be put in.
Increase the start of the irom0_0_seg so that it starts after iram0_0_seg
I would expect the linker to complain when the length is too small but found the above solution somewhere in internet and it works. I did not investigate further.

Dmitry Kireev
@kireevco
Dec 26 2015 09:01
@raburton hm strange, it built almost out of the box for me
Richard Antony Burton
@raburton
Dec 26 2015 09:10
@hreintke thanks, all have a go when I get home
@kireevco I'll have a Google for a solution later, just ran out if time this morning.
I'm back at work again :-(
Dmitry Kireev
@kireevco
Dec 26 2015 09:18
@raburton try to chill at work :)
Richard Antony Burton
@raburton
Dec 26 2015 09:24
The two of us on for the long weekend have loads of food in and had a reasonable day yesterday so fingers crossed for today.
Dmitry Kireev
@kireevco
Dec 26 2015 09:32
@raburton hopefully you'll get paid extra for this:)
Richard Antony Burton
@raburton
Dec 26 2015 09:35
@kireevco no, no extra pay. I get a day in liue for yesterday but not for today as technically the boxing day public holiday is on Monday.
johndoe8967
@johndoe8967
Dec 26 2015 11:24
hey :-)
@kireevco wanna talk about unit test?
crosofg
@crosofg
Dec 26 2015 12:29
how do i get the mac address of the devices connected to ESP(as an access point)?
how do i get the mac address of the devices connected to ESP(as an access point)?
hreintke
@hreintke
Dec 26 2015 13:06
@crosofg :
You can check the softap functions in the SDK programming guide
crosofg
@crosofg
Dec 26 2015 13:10
Can someone please write a short doc about the Sming nad how is it organised? I really want to some changes. But I dont know where to start .
hreintke
@hreintke
Dec 26 2015 13:12
In what area do you want to make some changes ?
Dmitry Kireev
@kireevco
Dec 26 2015 19:00
@johndoe8967 yes!
johndoe8967
@johndoe8967
Dec 26 2015 19:02
good evening :)
@kireevco ok, where can we start to talk, is it possible to open a private room for unit test issues?
Dmitry Kireev
@kireevco
Dec 26 2015 19:04
Morning here! Just hover over m
My username and open private chat
Richard Antony Burton
@raburton
Dec 26 2015 19:37
@kireevco didn't find a lot of into on that error, but do you have a package called lib
Dmitry Kireev
@kireevco
Dec 26 2015 19:37
lib?
Richard Antony Burton
@raburton
Dec 26 2015 19:38
Sorry libfdt, message submitted when I changed tab to check the spelling.
Just a clue I picked up, but haven't been able to test as still at work.
Dmitry Kireev
@kireevco
Dec 26 2015 19:39
@raburton yeah, you need to get it via git submodule
or install via packae manager
Richard Antony Burton
@raburton
Dec 26 2015 20:05
That wasn't in your instructions. I'll have a go when I get home then.
Dmitry Kireev
@kireevco
Dec 26 2015 20:10
git clone  https://github.com/OSLL/qemu-xtensa.git
git checkout xtensa-esp8266
git submodule update --init dtc
mkdir build
cd build
../configure --prefix=`pwd`/root --target-list=xtensa-softmmu,xtensaeb-softmmu
make && make install
git submodule update --init dtc
that's the library I was missing initially
that's it
I have a question asked millions of times: what is the estimated # of reflashes for esp?
alonewolfx2
@alonewolfx2
Dec 26 2015 20:15
it depend on flash type on model
winbond flashes are very good
Richard Antony Burton
@raburton
Dec 26 2015 20:34
Maybe that was in your instructions and I missed it? Sorry if so.
Richard Antony Burton
@raburton
Dec 26 2015 21:23
@kireevco ok, built, what's the magic to run it then? sorry for being lazy and not looking it up but it's been a long day
Dmitry Kireev
@kireevco
Dec 26 2015 21:23
@raburton i have my experiments here https://gist.github.com/kireevco/54275d6195ad8f87525d
qemu-system-xtensa -machine esp8266 -nographic -serial telnet:localhost:1200,server -monitor mon:telnet::4444,server,nowait -s -kernel flash.bin
tgat's the command
Richard Antony Burton
@raburton
Dec 26 2015 21:27
i get an unsupported machine type error
raburton@debian:~/dev/qemu-xtensa/build$ ./root/bin/qemu-system-xtensa -machine esp8266 -nographic -serial telnet:localhost:1200,server -monitor mon:telnet::4444,server,nowait -s -kernel ~/dev/shared/x.bin 
qemu-system-xtensa: -kernel /home/raburton/dev/shared/x.bin: unsupported machine type
Use -machine help to list supported machines
do i need to define esp8266 with a config file?
Dmitry Kireev
@kireevco
Dec 26 2015 21:29
are you sure you changed the branch?
when building it?
master doesn't have esp8266
Richard Antony Burton
@raburton
Dec 26 2015 21:30
pretty sure, i think i'm going to scratch this and rebuild, i had to keep doing it as i found all the missing dependancies along the way and clearly something got lost
sorry about this
raburton @raburton is tired
laurentppol
@laurentppol
Dec 26 2015 21:35
Hi there, I am newbie to ESP world. Which example should I read, if I want something like this:
  • load SSID/pw from stored file, try to connect, if not successful, start AP with default SSID/no pw/DHCP server, display www page allowing to configure SSID/pw/IP(static/dhcp), then try to connect again and update config file, disable AP?
johndoe8967
@johndoe8967
Dec 26 2015 21:37
I would suggest the HttpServer_ConfigNetwork
laurentppol
@laurentppol
Dec 26 2015 21:37
not the MeteoControl?
johndoe8967
@johndoe8967
Dec 26 2015 21:38
also possible, but I used the other one and it was quite easy to read, no I2C... stuff I didn't need
laurentppol
@laurentppol
Dec 26 2015 21:38
ok, thx :)
Richard Antony Burton
@raburton
Dec 26 2015 21:50
@kireevco right, got it working and to same point as you
Dmitry Kireev
@kireevco
Dec 26 2015 21:51
@raburton cool, awesome
Richard Antony Burton
@raburton
Dec 26 2015 21:51
changing flash size results in an error 4 sectors from the end, it's obviously tring to read or write (more likely) to the sector
i notice it doesn't really write to the rom file, are the changes lost or can you have a persistent rom file somewhere?
Richard Antony Burton
@raburton
Dec 26 2015 22:04
just added some extra debug to make sure the write calls made by rBoot are working and they certainly appear to be
but can't confirm because the changes are lost when the vm is stopped
Dmitry Kireev
@kireevco
Dec 26 2015 22:29
ah...
yeah, don't think there is persistence
unless it is some sort of disk you could emulate
Richard Antony Burton
@raburton
Dec 26 2015 22:32
would be nice to see what, if anything, had been written
Richard Antony Burton
@raburton
Dec 26 2015 22:44
@hreintke just pushed couple of commits to rtos
now builds libsming.a and separate apps
added a first sample app based on your original rtos sming test
only standard project so far, not tried using rtos with rboot yet
that's going to have to wait a little while, another long day on-call tomorrow, then heading to Manchester for a couple of days
hreintke
@hreintke
Dec 26 2015 23:22
@raburton :
Thanks, I pulled and got some compiling errors, will check tomorrow.
Noticed that I took my rboot testbranch when initially starting with RTOS.
Only part involved is the rboot, where I added code for testing/experimenting rBoot BIOS.
Does not change current behavior but I will revert tomorrow to the current implementation.
Richard Antony Burton
@raburton
Dec 26 2015 23:24
libsming and the sample app compile cleanly on linux with sdk v1.5.0, so could just be a windows path format type issue or something
hreintke
@hreintke
Dec 26 2015 23:25
sdk v1.5.0 ? should be rtos sdk 1.3.0
Richard Antony Burton
@raburton
Dec 26 2015 23:25
sorry, i means rtos 1.3.0, was just playing with regular sming for @kireevco a minute ago
geting myself confused
really need to go to bed
another 12.5 hours shift tomorrow
hreintke
@hreintke
Dec 26 2015 23:26
no problem, will that be three days 12,5 hour shifts ?
Richard Antony Burton
@raburton
Dec 26 2015 23:26
yeah
if i hadn't taken a couple of days annual leave they would have been in the middle of a 12 day run
hreintke
@hreintke
Dec 26 2015 23:28
that's tough. Have a good rest for the rest of the night :smile:
Always working 12,5 hour shifts or sometimes less ?
Richard Antony Burton
@raburton
Dec 26 2015 23:29
no, just the weekends and public holidays at 12.5
i've just added the other platform specific makefiles includes, forgot those
can't remember what envars i've had to set to get this going, but nothing too odd, i'm sure you'll get it going
hreintke
@hreintke
Dec 26 2015 23:31
saw the mails coming from the merge. Thanks.
BTW Did the ld file update solve the csum err ?
Richard Antony Burton
@raburton
Dec 26 2015 23:31
yes thanks
wanted to test on a device before i committed the changes of course
hreintke
@hreintke
Dec 26 2015 23:32
sure I will get it going. I am used to evaluate error messages last week(s)
Richard Antony Burton
@raburton
Dec 26 2015 23:32
right, goodnight
hreintke
@hreintke
Dec 26 2015 23:33
goodnight