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

LICKS - a Linux Installer for CHDK and SDM

  • 19 Replies
  • 5147 Views
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #10 on: 03 / December / 2011, 06:45:08 »
Advertisements
Isn't it the log, what I've already posted?

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

if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline zeno

  • *****
  • 887
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #11 on: 03 / December / 2011, 07:35:42 »
@outslider

OK, the log says that the fdisk command failed - and the most likely reason is that LICKS did not have permission to issue it. If in terminal you typed the command:
   sudo java -jar licks.jar
or
  ./licks.sh
and then typed in your admin password, the fdisk command should not fail.

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 #12 on: 03 / December / 2011, 10:21:16 »
or
  ./licks.sh
and then typed in your admin password, the fdisk command should not fail.

That's what I done. I tried again. Also tried:

Code: [Select]
$ sudo su
# ./licks.sh

as well as:

Code: [Select]
$ sudo su
# java -jar licks.jar

And all the time I got the same log... I post this just to give you a feedback that something is wrong,. If I can give you some other informations or try something feel free to say.

At the moment I've dd'ed my backup back to the card so it has two partitions and might be not seen by licks, but when I tried licks first time I had freshly formated (in camera) card. Maybe you can add a checkbox such as:

Code: [Select]
[] Select SD card from list of all drives (UNSAFE!)

This way you could show a list of all drives and user could select the SD one.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline zeno

  • *****
  • 887
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #13 on: 03 / December / 2011, 12:35:33 »
What happens if you type the following at the terminal prompt:
   sudo fdisk -l

If that succeeds (eg prints a list of /dev.... lines) then I don't understand why LICKS fails.
« Last Edit: 03 / December / 2011, 12:37:09 by zeno »
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 #14 on: 03 / December / 2011, 16:05:03 »
Code: [Select]

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a19db

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2611    20971520   83  Linux
/dev/sda2            2611        5222    20971520   83  Linux
/dev/sda3            5222       60802   446441473    5  Extended
/dev/sda5            5222       15556    83007812+  83  Linux
/dev/sda6           20887       40469   157286400   83  Linux
/dev/sda7           40469       60802   163324928   83  Linux
/dev/sda8           18099       20887    22395904   83  Linux
/dev/sda9           15557       18098    20418560   83  Linux

Partition table entries are not in disk order

Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d8a6b

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1               1        1005       32098+   6  FAT16
Partition 1 does not end on cylinder boundary.
/dev/mmcblk0p2   *        1025      242560     7729152    b  W95 FAT32
Partition 2 does not end on cylinder boundary.

The card is now partitioned by me so there are two partitions.
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline zeno

  • *****
  • 887
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #15 on: 03 / December / 2011, 18:26:02 »
@outslider

this is really weird. I really don't understand why the fdisk command fails when LICKS issues it but works when you issue it directly. The fact that the card has two partitions should not matter - as you can see from the image on the LICKS webpage, the card there has two partitions.

Could you try once more with the latest version - does it display a message saying "No SUDO permission"?
« Last Edit: 03 / December / 2011, 18:29:57 by zeno »
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline zeno

  • *****
  • 887
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #16 on: 13 / December / 2011, 12:20:10 »
Following extensive fiddling around, I think I have discovered at least one cause of the fdisk problem. Until today I had assumed that the output of 'system commands' like fdisk was not affected by the choice of UI language. I discovered today, by switching my Ubuntu system to use French, that this is not true. In particular, separator characters that look like spaces in Terminal (and are when English is chosen) are often Unicode non-turning blanks (x'C2A0'). Needless to say my code in several places was looking for blanks.

I've amended Licks so that it correctly works in French as well as English, though there may be problems with other languages. I'd like logs from failing versions to help me fix them too.

The new version (1.04) has several other new features:
  1. I've yet again tried to fix the layout problems reported by Waterwingz
  2. as well as fontname, you can now specify fontsize and bold (yes or no)
  3. by default 4GB cards can be formatted as either 1 or 2 partitions

Download the new version from http://www.zenoshrdlu.com/licks/licks.html
« Last Edit: 13 / December / 2011, 12:47:10 by zeno »
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline reyalp

  • ******
  • 12538
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #17 on: 13 / December / 2011, 16:10:44 »
If you will just be parsing the output, you may be able to set language/locale environment variables before running the command.
Don't forget what the H stands for.


Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #18 on: 17 / December / 2011, 20:00:53 »
The new version (1.04) has several other new features:
  1. I've yet again tried to fix the layout problems reported by Waterwingz
  2. as well as fontname, you can now specify fontsize and bold (yes or no)
  3. by default 4GB cards can be formatted as either 1 or 2 partitions
I tried setting the font to Arial 8pt.  Regardless of this or the starting window size,  I still get this when I launch the app (the fonts stuff and window size is remembered between launches) :



Notice the missing text box beside the Main Volume: label.  Resizing the windows even very slightly causes it to appear :



Not a show stopper - I can live with it.  Just thought I'd send an update though.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline zeno

  • *****
  • 887
Re: LICKS - a Linux Installer for CHDK and SDM
« Reply #19 on: 29 / February / 2012, 05:44:21 »
I've updated LICKS so that, like my SDMInst Mac app, it offers the option of formatting bootable cards as FAT32. Of course this is only suitable for pots-January 2011 cameras (and LICKS does warn you about this). See http://www.zenoshrdlu.com/licks/licks.html
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

 

Related Topics