sbl2e dualserial factory image web pages are corrupt

Discussion to talk about software related topics only.
Post Reply
heineckenb
Posts: 18
Joined: Thu May 15, 2014 9:19 am

sbl2e dualserial factory image web pages are corrupt

Post by heineckenb »

Just got my SBL2E kit, and the learning curve is kinda steep, so I don't know what to make of this.

The code ran just fine out of the box, and the configuration web pages are as expected.

I modified dualserial, loaded it up, and of course it didn't work as I expected. All non-trivial programs contain bugs....

I went to the factory original image of the dualserial app, and loaded it with MTTTY (because my sbl2e disappeared from NBFIND and AutoUpdate.) After rebooting, all the served up web pages are odd, to say the least.

For example, here's what's in the examples/sbl2e/dualserial/html/index.htm, near the top:
<!--PASSWORDGROUP 1 -->
<html>

<script type="text/javascript">
...
but here's what get's served up:
<!--PASSWORDGROUP 1 -->
�>

� type="text/javascript">
...
In fact, except for the passwordgroup, every instance of <anything is replaced by �. "<html>" becomes "�>", while "<body bgcolor...>" becomes just "� bgcolor...>". No current values of ip_Addr/MyIpAddr or ip_Mask/MyIpMask are served up:

working:
<tr>
<td>
<font size="2">Device IP address:</font>
</td>
<td>
<input name="v02DeviceAddress" size="20" value="0.0.0.0" type="text">
</td>
<td>
<font size="2">192.168.1.115</font>
</td>
</tr>
not working
�>
�>
� size="2">Device IP address:�>
�>
�>
� name="v02DeviceAddress" size="20" value="" type="text">
�>
�>
� size="2">
�>
�>
My hex editor shows the "�" to be 0xEFBFBD sequence.

It sort of looks like the code that's supposed to serve up the web page, while stripping things like PASSWORDGROUP, and filling in VARIABLE values, is...well, I don't know what it's doing. The VARIABLE fields are getting removed, but they're not being filled in with the variable values.

Any ideas? Anyone?

Thanks,
jmh
heineckenb
Posts: 18
Joined: Thu May 15, 2014 9:19 am

Re: sbl2e dualserial factory image web pages are corrupt

Post by heineckenb »

update--I loaded SBL2E-AppR1P65/SBL2E-App_APP.s19 and the problem isn't there. I assume there is some kind of version mismatch between the NNDK 2.6.4 "original" dualserial code and the update monitor running in my SBL2e. If anyone has a better idea I'd love to hear about it, but I'm moving on.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: sbl2e dualserial factory image web pages are corrupt

Post by dciliske »

In your first post, where did you get the image from? You're running into a compression issue I believe. (The L2E doesn't have enough RAM to decompress webpages, and so they must be stored raw, unlike other platforms; it's a flag for comphtml).

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
heineckenb
Posts: 18
Joined: Thu May 15, 2014 9:19 am

Re: sbl2e dualserial factory image web pages are corrupt

Post by heineckenb »

The first "factory original" image I flashed came from C:\nburn\SBL2E\original\dualserial_APP.s19. I did not try dualserial.s19. These are in the NNDK 2.6.4 release.

The second "factory original" I flashed was SBL2E-AppR1P65/SBL2E-App_APP.s19, downloaded from NetBurner site. see http://www.netburner.com/support/docume ... e/349-50-2.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: sbl2e dualserial factory image web pages are corrupt

Post by dciliske »

It turns out that the makefiles for SBL2E projects were missing the "no compression" flag on the call to comphtml. Therefore the 'original' app image was being built wrong. This image is different than the version loaded onto the devices as that image is fully constructed including the bootloader and is a more manual procedure. This issue has been corrected.
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply