Post Reply 
HP-41CL self-update via HP-IL
11-22-2017, 05:13 AM
Post: #21
RE: HP-41CL self-update via HP-IL
(11-21-2017 09:00 PM)Monte Dalrymple Wrote:  Another (quicker) way is to just do YCRC on both pages and compare the result.
This will indicate same/different, and then you can do the compare if there is
a difference that you want to find.

Thanks! I just managed to transfer a ROM and it got the same checksum with YCRC as the copy of the same module already in flash.

Håkan
Find all posts by this user
Quote this message in a reply
11-22-2017, 05:26 AM
Post: #22
RE: HP-41CL self-update via HP-IL
How can I plug in my Ladybug module? I just downloaded it to RAM, but how do I assign a physical page to a secondary bank?

Håkan
Find all posts by this user
Quote this message in a reply
11-22-2017, 05:32 AM
Post: #23
RE: HP-41CL self-update via HP-IL
(11-21-2017 08:37 PM)jsi Wrote:  that the Q&D utility "romlif" works as expected to include it in the LIFUTILS release.

Yes, it works!

Håkan
Find all posts by this user
Quote this message in a reply
11-22-2017, 06:07 AM
Post: #24
RE: HP-41CL self-update via HP-IL
(11-22-2017 05:26 AM)hth Wrote:  How can I plug in my Ladybug module? I just downloaded it to RAM, but how do I assign a physical page to a secondary bank?

Håkan

I suggest looking at page 16 of the 41CL Extreme Functions Manual.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-22-2017, 06:38 AM
Post: #25
RE: HP-41CL self-update via HP-IL
(11-22-2017 06:07 AM)Monte Dalrymple Wrote:  
(11-22-2017 05:26 AM)hth Wrote:  How can I plug in my Ladybug module? I just downloaded it to RAM, but how do I assign a physical page to a secondary bank?

Håkan

I suggest looking at page 16 of the 41CL Extreme Functions Manual.

Thanks! (Page 16 in my old copy was very different from the one at your site..)

However, plugging in 41CL Extreme causes my machine to lock up and display NONEXISTENT.

I tried:
MMUCLR
"XFNP" PLUG4U
MMUEN
"XFNX" PLUG1L
crash/NONEXISTENT
Find all posts by this user
Quote this message in a reply
11-22-2017, 07:10 AM
Post: #26
RE: HP-41CL self-update via HP-IL
(11-22-2017 06:38 AM)hth Wrote:  
(11-22-2017 06:07 AM)Monte Dalrymple Wrote:  I suggest looking at page 16 of the 41CL Extreme Functions Manual.

Thanks! (Page 16 in my old copy was very different from the one at your site..)

However, plugging in 41CL Extreme causes my machine to lock up and display NONEXISTENT.

I tried:
MMUCLR
"XFNP" PLUG4U
MMUEN
"XFNX" PLUG1L
crash/NONEXISTENT

It's either XFNP _or_ XFNX, not both. Try MMUCLR, "YFNX" PLUG1L MMUEN
Visit this user's website Find all posts by this user
Quote this message in a reply
11-22-2017, 12:00 PM
Post: #27
RE: HP-41CL self-update via HP-IL
There is the scenario where someone creates a ROM on the HP-41.... pretty unlikely, I guess...

But maybe a modified ROM image on the 41 could be a scenario?
Find all posts by this user
Quote this message in a reply
11-22-2017, 03:35 PM
Post: #28
RE: HP-41CL self-update via HP-IL
(11-22-2017 05:01 AM)hth Wrote:  
(11-21-2017 08:21 PM)mfleming Wrote:  Can't wait to see Håkan's work! Can it transfer a page to a LIF file as well?
~Mark

Is there a need to save a page to LIF too? Are not all these ROM images available on the host side already?

Håkan

(11-22-2017 12:00 PM)Geir Isene Wrote:  There is the scenario where someone creates a ROM on the HP-41.... pretty unlikely, I guess...

But maybe a modified ROM image on the 41 could be a scenario?

I can see a few useful scenarios for saving a 41CL page to a lif medium. The first would be to backup the state of the calculator. I have managed to foul things up enough that I lost all calculator state (see earlier posts in this thread Smile ). Another would be to provide an HP-IL based counterpart to the CLupdate automated system. Not sure anyone would want to go to the trouble of developing a simple lookalike system though. A last possibility would be the storage of a lot of offline information in 41CL RAM. Half a meg was quite a bit of storage in the old days, and it would be interesting to have a module that could operate on a virtual lif disk there. Then you'd need a means of moving the local data back and forth...

Anyway, just some thoughts.
~Mark
Find all posts by this user
Quote this message in a reply
11-22-2017, 03:56 PM
Post: #29
RE: HP-41CL self-update via HP-IL
(11-22-2017 03:35 PM)mfleming Wrote:  I can see a few useful scenarios for saving a 41CL page to a lif medium. The first would be to backup the state of the calculator. I have managed to foul things up enough that I lost all calculator state (see earlier posts in this thread Smile ). Another would be to provide an HP-IL based counterpart to the CLupdate automated system. Not sure anyone would want to go to the trouble of developing a simple lookalike system though. A last possibility would be the storage of a lot of offline information in 41CL RAM. Half a meg was quite a bit of storage in the old days, and it would be interesting to have a module that could operate on a virtual lif disk there. Then you'd need a means of moving the local data back and forth...

Anyway, just some thoughts.
~Mark

Good points. I am set on creating a full alternative auto-update via HP-IL. Also, having a full 16 Meg LIF file as mass storage is really intriguing.
Find all posts by this user
Quote this message in a reply
11-22-2017, 04:18 PM
Post: #30
RE: HP-41CL self-update via HP-IL
(11-22-2017 07:10 AM)Monte Dalrymple Wrote:  It's either XFNP _or_ XFNX, not both. Try MMUCLR, "YFNX" PLUG1L MMUEN

I tried it a couple of times, but it causes my machine to lock up rather promptly. Have to remove batteries to get control back.

Håkan
Find all posts by this user
Quote this message in a reply
11-22-2017, 08:27 PM (This post was last modified: 11-23-2017 07:21 AM by jsi.)
Post: #31
RE: HP-41CL self-update via HP-IL
I added code to the romlif utility to correct the ROM checksum which I used in the rom41hx
utility. The modified utility has not been tested.

Note: I changed the name to rom41lif to be consistent with the other LIFUTILS.

Regards
Joachim

Edit: missing attachment was added


Attached File(s)
.zip  rom41lif.zip (Size: 3.44 KB / Downloads: 2)
Find all posts by this user
Quote this message in a reply
11-22-2017, 09:09 PM
Post: #32
RE: HP-41CL self-update via HP-IL
(11-22-2017 04:18 PM)hth Wrote:  
(11-22-2017 07:10 AM)Monte Dalrymple Wrote:  It's either XFNP _or_ XFNX, not both. Try MMUCLR, "YFNX" PLUG1L MMUEN

I tried it a couple of times, but it causes my machine to lock up rather promptly. Have to remove batteries to get control back.

Håkan

Are you sure that YFNX and YLIB are correctly loaded in Flash?

Try loading just YFNP, and then do YCRC on pages 0x00A and 0x00B to verify
the integrity of these two pages. Use the mem_ref document for the correct
values. If you don't have the latest YFNX and YLIB loaded, you'll need to
stick with YFNP for now.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-22-2017, 09:32 PM
Post: #33
RE: HP-41CL self-update via HP-IL
(11-22-2017 09:09 PM)Monte Dalrymple Wrote:  
(11-22-2017 04:18 PM)hth Wrote:  I tried it a couple of times, but it causes my machine to lock up rather promptly. Have to remove batteries to get control back.

Håkan

Are you sure that YFNX and YLIB are correctly loaded in Flash?

Try loading just YFNP, and then do YCRC on pages 0x00A and 0x00B to verify
the integrity of these two pages. Use the mem_ref document for the correct
values. If you don't have the latest YFNX and YLIB loaded, you'll need to
stick with YFNP for now.

I did some YCRC around, service module and Nut page 1 seemed the same, many others give different CRC, including those mentioned above. This is on a V4 board that I have not updated in any way.

Håkan
Find all posts by this user
Quote this message in a reply
11-22-2017, 09:38 PM
Post: #34
RE: HP-41CL self-update via HP-IL
(11-22-2017 08:27 PM)jsi Wrote:  I added code to the romlif utility to correct the ROM checksum which I used in the rom41hx
utility. The modified utility has not been tested.

Note: I changed the name to rom41lif to be consistent with the other LIFUTILS.

Regards
Joachim

Without a deb package yet, I tried to build one using the instructions in the Linux directory, but got this:
Code:

~/Dropbox/G/GIT/lifutils ~/Dropbox/G/GIT/lifutils/linux
dpkg-buildpackage: info: source package lifutils
dpkg-buildpackage: info: source version 1.7.7b1
dpkg-buildpackage: info: source distribution xenial
dpkg-buildpackage: info: source changed by trusty <achim@trillian>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build lifutils
 debian/rules clean
dh clean
dh: Compatibility levels before 9 are deprecated (level 6 in use)
   dh_auto_clean
dh_auto_clean: Compatibility levels before 9 are deprecated (level 6 in use)
    make -j1 distclean
make[1]: Entering directory '/home/geir/Dropbox/G/GIT/lifutils'
make[1]: *** No rule to make target 'Makefile.am', needed by 'Makefile.in'.  Stop.
make[1]: Leaving directory '/home/geir/Dropbox/G/GIT/lifutils'
dh_auto_clean: make -j1 distclean returned exit code 2
debian/rules:9: recipe for target 'clean' failed
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
mv: cannot stat '../lifutils_*.deb': No such file or directory
mv: cannot stat '../lifutils_*.changes': No such file or directory
~/Dropbox/G/GIT/lifutils/linux
Find all posts by this user
Quote this message in a reply
11-23-2017, 01:12 PM
Post: #35
RE: HP-41CL self-update via HP-IL
Joachim,

With your latest Git update, I got this:

Code:

geir@juba: ~/Dropbox/G/GIT/lifutils/ linux/build_lifutils.sh
~/Dropbox/G/GIT ~/Dropbox/G/GIT/lifutils
tail: cannot open 'debian/changelog' for reading: No such file or directory
dpkg-buildpackage: error: tail of debian/changelog gave error exit status 1
mv: cannot stat '../lifutils_*.deb': No such file or directory
mv: cannot stat '../lifutils_*.changes': No such file or directory
~/Dropbox/G/GIT/lifutils
Find all posts by this user
Quote this message in a reply
11-23-2017, 01:18 PM (This post was last modified: 11-23-2017 01:20 PM by Geir Isene.)
Post: #36
RE: HP-41CL self-update via HP-IL
I was in the wrong dir while running the script (the script should check for that). After installing cdbs, it did build, but with this at the end:

Code:

set -e;   mv ./config.guess.cdbs-orig ./config.guess;   mv ./config.sub.cdbs-orig ./config.sub;
dh_clean 
 dpkg-source --after-build lifutils
dpkg-buildpackage: info: binary-only upload (no source included)
 signfile lifutils_1.7.7b1_amd64.buildinfo
gpg: skipped "trusty <achim@trillian>": No secret key
gpg: dpkg-sign._YSTlgDd/lifutils_1.7.7b1_amd64.buildinfo: clearsign failed: No secret key

dpkg-buildpackage: error: failed to sign .buildinfo file
~/Dropbox/G/GIT/lifutils/linux

It also left these two files in the directory above lifutils:

Code:

lifutils-dbgsym_1.7.7b1_amd64.ddeb                          455 K
lifutils_1.7.7b1_amd64.buildinfo                           7.84 K
Find all posts by this user
Quote this message in a reply
11-23-2017, 05:36 PM
Post: #37
RE: HP-41CL self-update via HP-IL
You can use the deb file generated above. Failed signing due to a missing key file does not harm. During the build process other files may be generated which seems to be distribution dependent (Ubunto Xenial does not generate a debug or buildinfo file).

Anyway a new linux build_lifutils.sh file was committed that turns off signing, checks if it was called from its directory and removes debug and buildinfo files.
Find all posts by this user
Quote this message in a reply
11-23-2017, 05:40 PM
Post: #38
RE: HP-41CL self-update via HP-IL
(11-23-2017 05:36 PM)jsi Wrote:  You can use the deb file generated above. Failed signing due to a missing key file does not harm. During the build process other files may be generated which seems to be distribution dependent (Ubunto Xenial does not generate a debug or buildinfo file).

Anyway a new linux build_lifutils.sh file was committed that turns off signing, checks if it was called from its directory and removes debug and buildinfo files.

Thanks :-)
Find all posts by this user
Quote this message in a reply
11-25-2017, 05:47 PM
Post: #39
RE: HP-41CL self-update via HP-IL
I have now updated the GitHub repository with more documentation, more options and general clean-ups. A preliminary version of Håkan Törngren's ROM is included (with RDROM16 and WRROM16 routines to read and write full 16 bit roms - as handled by the new rom41lif in the LIFUTILS. When the FOCAL program FUPDATE.41 is tested and finalized, it will also be included in this ROM (possibly also checksum functionality, but that will be up to Håkan)

Please do test and give feedback :-)

GitHub repo: https://github.com/isene/hp-41cl_update

PS: Thank you Håkan. You are friggin' awesome.
Find all posts by this user
Quote this message in a reply
11-25-2017, 06:14 PM
Post: #40
RE: HP-41CL self-update via HP-IL
(11-25-2017 05:47 PM)Geir Isene Wrote:  I have now updated the GitHub repository with more documentation, more options and general clean-ups. A preliminary version of Håkan Törngren's ROM is included (with RDROM16 and WRROM16 routines to read and write full 16 bit roms - as handled by the new rom41lif in the LIFUTILS. When the FOCAL program FUPDATE.41 is tested and finalized, it will also be included in this ROM (possibly also checksum functionality, but that will be up to Håkan)

Please do test and give feedback :-)

GitHub repo: https://github.com/isene/hp-41cl_update

PS: Thank you Håkan. You are friggin' awesome.

I am still struggling with what to do with checksums, for now I am working an a CRC32 calculation, pending decision if that should be added to the file format.

Håkan
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)