LICKS - a Linux Installer for CHDK and SDM - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

LICKS - a Linux Installer for CHDK and SDM

  • 19 Replies
  • 10095 Views
*

Offline zeno

  • *****
  • 891
LICKS - a Linux Installer for CHDK and SDM
« on: 01 / December / 2011, 06:10:38 »
Advertisements
There is an alpha version of the Linux version of my SDMInst OSX app, LICKS, here http://www.zenoshrdlu.com/licks/licks.html

LICKS stands for Linux Installer for ChdK and Sdm. Though I've tried to test it pretty thoroughly, I only have a Ubunto 11.04 system, so please take care - if I haven't done my job properly it could let you format a hard-disk.

Waterwingz did some testing yesterday of Version 1.0 (see below) and I've tried to fix the problems he mentions in version 1.01.

LICKS stands for Linux Installer for ChdK and Sdm. Though I've tried to test it pretty thoroughly, please take care - if I haven't done my job properly it could let you format a hard-disk.
Initial test report Fedora 16  (64 bit)  (see image below):
1) Will not let me create a single partition - only choice is 2 - on a 4G card.
2) Create Partition label overwritten by Number of partitions label. Other label issues (see screen shot).
3) File browser only lets you select directories but displays individual file - somewhat confusing.  You can't select the ZIP file of your preferred CHDK distribution file.
4) Needed to do a chmod 744 licks.sh to get the script to run
5) When I press "Prepare" the message line says "A volume name for the 2nd partition is required" but there is no edit field beside the label Main Volume to let me enter a volume name (see screenshot)

Test aborted for now.

p.s. should probably ask acseven to move this conversation into its own thread ?



Reply from me:

Note that most of your problems are due to the window not being sized properly - it needs to be wider. Try dragging it and see how many of the problems go away. LICKS remembers the window size when you exit - my version thus looks OK. I need to change the default values to match.

To create one partition on a 4GB card you need to alter the max1size entry in the properties file.

You're right about the File browser dialog. I wrote it because there isn't a directory chooser in java for Linux or Windows but will look at improving it.

A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #1 on: 02 / December / 2011, 04:37:12 »
Zeno - Thanks for another great tool !

I've added a wiki page with links to your nice LICKS homepage - http://chdk.wikia.com/wiki/LICKS

*

Offline zeno

  • *****
  • 891
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #2 on: 02 / December / 2011, 09:10:16 »
Version 1.02 is now up - drag-and-drop now works properly and I've done a  chmod 744 on the .sh file).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #3 on: 02 / December / 2011, 13:50:20 »
Ha! Great idea! I'm going to try this out! I'll post a feedback soon (if it won't format my HD ;D).

Ahh... And it can't find my card:

Code: [Select]
Scanning for suitable cards (16GB or less) ...
There are no suitable cards

The card is just formated in camera and it's mounted. Mount reports it as follows:

Code: [Select]
/dev/mmcblk0p1 on /media/CANON_DC type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush

This is 8 GB Sandisk (which appears to be 7.4 GB in fact). Maybe the 7.4 size is the problem since LICKS requires 2n GB?
« Last Edit: 02 / December / 2011, 14:23:27 by outslider »
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick


*

Offline zeno

  • *****
  • 891
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #4 on: 02 / December / 2011, 15:23:22 »
@outslider
If you turn on the debug switch and do a refresh the log will show (in great detail) what's going on under the covers. Could you email the resulting log to me (or post it here)?

I don't think LICKS even saw the card, it would have said if it skipped it because it wasn't a power of 2GB.

Dave AT zenoshrdlu.com
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #5 on: 02 / December / 2011, 15:53:46 »
Ok. So the things are as follow:

Code: [Select]
Scanning for suitable cards (16GB or less) ...
Command 'mount -l -t vfat,fat,msdos' = '/dev/mmcblk0p1 on /media/CANON_DC type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush) [CANON_DC]'
   return code was 0
Command 'fdisk -l | grep 'Disk /dev/'' = ''
   return code was 1
There are no suitable cards


My own investigations:

Code: [Select]
pawel@black-pearl:/$ mount -l -t vfat,fat,msdos
/dev/mmcblk0p1 on /media/CANON_DC type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush) [CANON_DC]

So above is OK. Next:

Code: [Select]
pawel@black-pearl:/$ fdisk -l
pawel@black-pearl:/$

So fdisk -l returns nothing.

----edit----

Eghhhh... I forgot that fdisk has to be run from root to say true. Unfortunetly I'm dd'ing the backup file to the SD card now and it's a very loooooooooong process:/
« Last Edit: 02 / December / 2011, 17:35:19 by outslider »
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline zeno

  • *****
  • 891
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #6 on: 02 / December / 2011, 17:47:02 »
Yes, when you don't issue a sudo and type a password when running LICKS, the inner commands fail. I should make sure that LICKS issues a message when commands like 'fdisk -l' return -1. Silly of me not to do that. Next version will fix.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #7 on: 02 / December / 2011, 17:53:01 »
No, no, I meant the fdisk command I tried directly in the terminal was without. I run LICKS through bash script and it autmatically asked me about my psswd (by sudo in code I guess?). So I assume, that LICKS had root privilages.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick


Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #8 on: 02 / December / 2011, 21:07:41 »
Okay - succeeded in formatting a 4G card with dual partitions with files for my camera copied over automagically.

A couple of comments :

1) When first opened.  the window has all the label & text box issues mentioned in my original post.  If I drag the window larger, this clears up.  I can then drag the window back to the original size AND SMALLER and the labels and text boxes all continues to work correctly.  Seems its just a window initialization problem? But, if I close the window when it has been stretched to 2x its starting size,  the label error is there when I reopen (even though the new window opens at 2x its original size).

2) I still don't understand why I am not allowed to format a 4G card with a single partition.  I get the part about changing the max1size to 5000 but why is that not the default ?

3) Is it possible to have a "please wait" indication while it is off doing formatting etc ?

Good stuff - thanks for all the work !!



Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline zeno

  • *****
  • 891
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #9 on: 03 / December / 2011, 06:23:13 »
@outslider - if LICKS was invoked via sudo, then it should have seen your card. Could you send me a debug log please?

@waterwingz - next version will have a "please wait' message and an attempt to fix the size problem (which doesn't happen on my Ubuntu machine, so it's hard for me to test). The reason for the 2GB limit on single partition formatting (which SDMInst has too) is that at the time I wrote SDMInst there were reports of problems with some varieties of 4GB cards. I'm happy to raise the limit to 4GB if that's no longer a valid concern.

Version 1.03 up later today
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal