• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Windows (R) operating system on a D2Plug?  (Read 4545 times)
HaunsTM
Newbie
*

Karma: 0
Posts: 12


View Profile
« on: January 14, 2012, 04:21:16 PM »

Hi all,

For a couple of moths ago I bought a D2Plug with Ubuntu 10.04 pre-installed.

To make it very short:

1) Is it possible to completely change the Linux OS to a Windows OS (I am thinking of Windows Embedded CE 6) on my D2Plug?
2) Does anyone know where to find simple instructions on how I can install Win CE on my D2Plug?

Why do I want to do this? Well, I have really tried very hard, but I find it very hard to become a friend with Linux/Ubuntu.

Please help me if you have any ideas.

With kind regards,
Hans
Logged

mentor
Jr. Member
**

Karma: 2
Posts: 67


View Profile
« Reply #1 on: January 15, 2012, 07:59:47 PM »

as I know , currently not any wince version support at D2Plug, so even you want to do the porting by yourself , I think no one knows how to count this effort
 
I think ubuntu not hard o used for daily work , so could you point out which thing you think ubuntu not suit for you maybe we could fingure out a way to let you

used ubuntu
Logged

HaunsTM
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #2 on: January 20, 2012, 12:24:26 PM »

Thanks (again) Mentor for trying to help me.

I believe that I have several issues but to start somewhere, and make it really short, the first thing I want to do is to permanently mount a windows partitition (I want to access a Windows network resource from my D2Plug).

For my purpose, I have read several internet threads on how this should be done. For example "How to mount remote windows partition (windows share) under Linux":

Quote
Procedure to mount remote windows partition (NAS share)

1) Make sure you have following information:
==> Windows username and password to access share name
==> Sharename (such as //server/share) or IP address
==> root level access on Linux

2) Login to Linux as a root user (or use su command)

3) Create the required mount point:
# mkdir -p /mnt/ntserver
4) Use the mount command as follows:
# mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

Use following command if you are using Old version such as RHEL <=4 or Debian <= 3:
# mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download /mnt/ntserver

5) Access Windows 2003/2000/NT share using cd and ls command:
# cd /mnt/ntserver; ls -l
, (http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html)

This is what I started with from a Terminal:
Code:
ubuntu@D2Plug:~$ sudo aptitude install smbfs

The output after that command was:

Code:
ubuntu@D2Plug:~$ sudo aptitude install smbfs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Writing extended state information... Done
The following partially installed packages will be configured:
  linux-dove linux-image-2.6.32-219-dove linux-image-dove
0 packages upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up linux-image-2.6.32-219-dove (2.6.32-219.37) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-219-dove
Running postinst hook script /usr/sbin/flash-kernel.
Unsupported platform.
User postinst hook script [/usr/sbin/flash-kernel] exited with value 1
dpkg: error processing linux-image-2.6.32-219-dove (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-dove:
 linux-image-dove depends on linux-image-2.6.32-219-dove; however:
  Package linux-image-2.6.32-219-dove is not configured yet.
dpkg: error processing linux-image-dove (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-dove:
 linux-dove depends on linux-image-dove (= 2.6.32.219.21); however:
  Package linux-image-dove is not configured yet.
dpkg: error processing linux-dove (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 linux-image-2.6.32-219-dove
 linux-image-dove
 linux-dove
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up linux-image-2.6.32-219-dove (2.6.32-219.37) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-219-dove
Running postinst hook script /usr/sbin/flash-kernel.
Unsupported platform.
User postinst hook script [/usr/sbin/flash-kernel] exited with value 1
dpkg: error processing linux-image-2.6.32-219-dove (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-dove:
 linux-image-dove depends on linux-image-2.6.32-219-dove; however:
  Package linux-image-2.6.32-219-dove is not configured yet.
dpkg: error processing linux-image-dove (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-dove:
 linux-dove depends on linux-image-dove (= 2.6.32.219.21); however:
  Package linux-image-dove is not configured yet.
dpkg: error processing linux-dove (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.32-219-dove
 linux-image-dove
 linux-dove
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done


then I proceeded with this:
Quote
ubuntu@D2Plug:~$ sudo mkdir -p /mnt/joxer

followed by this
Code:
ubuntu@D2Plug:~$ sudo mount -t smbfs -o username=MY_USERNAME,password=MY_PASSWORD //joxer.fagotten.org/hansb /mnt/joxer

the ouput was

Code:
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)






I think my first questions should be:
1) How should I make my system support CIFS filesystem?
2) Did the article I reffered to above describe a correct way to mount a windows network share? If not, what is a working way to do it?


Kind regards,
Hans


Logged

jackkutcher
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #3 on: January 26, 2012, 05:06:27 PM »

any update to this....
Logged


AndB
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #4 on: January 27, 2012, 01:58:35 PM »

I have encountered the same problem.  You can connect using nautilus but there is no command line mechanism for connecting to a samba share.  The solution doubtless resides with building a new kernel with the support for samba built in.  Normally this is not too complicated, but I have not had the time or heart to try.
Logged

HaunsTM
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #5 on: January 28, 2012, 05:02:17 AM »

Seems to me that you are the most familiar person of us of the problem AndB?


I know that there are lots of instructions with new kernel builds out there, but for us newbies, do you know any step-by-step guide on how this could be done?
I'm unsure if the users guide @ http://www.plugcomputer.org/405/us/d2plug/documentation/D2Plug-Software-User-Guide.pdf (chapter 2 "Compiling D2Plug U-Boot and LSP Binaries") describes the situation very well?

Where should I start? Should anything be downloaded? USB boot devices?
Logged

mentor
Jr. Member
**

Karma: 2
Posts: 67


View Profile
« Reply #6 on: February 01, 2012, 12:36:08 AM »

the error message "cifs filesystem not supported by the system
"
meaning , your kernel not support cifs

you could re-build kernel, used menuconfig to let below config be true

"
CONFIG_CIFS=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_DEBUG2=y

"
Logged

HaunsTM
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #7 on: February 01, 2012, 10:33:38 AM »

Well, I think I need some more hands on...

On https://help.ubuntu.com/community/Kernel/Compile I found this:

Quote
Alternate Build Method: The Old-Fashioned Debian Way
The new Ubuntu build system is great for developers, for people who need the absolute latest bleeding-edge kernel, and people who need to build a diverse set of kernels (several "flavours"). However it can be a little complex for ordinary users. If you don't need the latest development sources, there is a simpler way to compile your kernel from the linux-source package. As suggested above, all you need for this is:

Code:
sudo apt-get install linux-source device-tree-compiler # device-tree-compiler is only needed if you are targeting the PowerPC architecture
mkdir ~/src
cd ~/src
tar xjvf /usr/src/linux-source-<version-number-here>.tar.bz2
cd linux-source-<version-number-here>
Now you are in the top directory of a kernel source tree. Before building the kernel, you must configure it. If you wish to re-use the configuration of your currently-running kernel, start with

Code:
cp -vi /boot/config-`uname -r` .config
Before you run make menuconfig or make xconfig (which is what the next step tells you to do), make sure you have the necessary packages:

Code:
sudo apt-get install qt3-dev-tools libqt3-mt-dev # if you plan to use 'make xconfig'
sudo apt-get install libncurses5 libncurses5-dev # if you plan to use 'make menuconfig'
If you would like to see what is different between your original kernel config and the new one (and decide whether you want any of the new features), you can run:

Code:
make oldconfig
Since the 2.6.32 kernel, a new feature allows you to update the configuration to only compile modules that are actually used in your system:

Code:
make localmodconfig
Then, regardless of whether you're re-using an existing configuration or starting from scratch:

Code:
make menuconfig # or "make xconfig" if you prefer
If you re-used the existing configuration, note that Ubuntu kernels build with debugging information on, which makes the resulting kernel modules (*.ko files) much larger than they would otherwise be. To turn this off, go into the config's "Kernel hacking"<!-- ; then, under "Kernel debugging", --> and turn OFF "Compile the kernel with debug info".

Now you can compile the kernel and create the packages:

Code:
make-kpkg clean # only needed if you want to do a "clean" build
fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers
If you also need a debug symbol package, for example for use with SystemTap, add kernel-debug onto the end of the make-kpkg command line.

You can enable parallel make (just like make -j) by defining the CONCURRENCY_LEVEL environment variable. Don't try to add the -j option to make-kpkg. Try 1+number of processor cores, e.g. 3 if you have a dual core processor:

Code:
export CONCURRENCY_LEVEL=3
The *.deb packages will be created in the parent directory of your Linux source directory (in this example, they would be placed in ~/src because our Linux source directory is ~/src/linux-source-<version-number-here>).

I'm sorry but I don't understand you at all. What do you mean with "you could re-build kernel, used menuconfig to let below config be true"? Should I do any kind of configuration? Are there any kind of configuration file or what???


Logged

mentor
Jr. Member
**

Karma: 2
Posts: 67


View Profile
« Reply #8 on: February 01, 2012, 07:38:46 PM »

let me said more clearily

first ,I think you used origion kernel at D2plug , the cifs feature not enable at default , so you will see some complain about cifs

to resolved this , you need to do is

1.download the kernel source,cross compiler and user guide form below link

http://www.plugcomputer.org/downloads/d2plug/index.html

2.follow user guide to re-build kernel, BTW  you could see the page 8 at user guide , "make dove_d2plug_defconfig" , after that , you need type make ARCH=arm

menuconfig, than enable cifs feature as I mention at previous thread ,save config , make uImage to buld kernel

3. burn kernel into D2plug follow user guild mention




Logged

HaunsTM
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #9 on: February 05, 2012, 12:04:20 PM »

Thanks for your clarifying answer Mentor but I still have problems. I managed to compile (and mount) my new kernel according to your post. But when I tried to mount the share, I run in to further issues:

Code:
ubuntu@D2Plug:~$ sudo aptitude install smbfs
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
  smbclient
The following NEW packages will be installed:
  keyutils{a} smbfs
The following packages will be upgraded:
  samba-common
1 packages upgraded, 2 newly installed, 0 to remove and 390 not upgraded.
Need to get 2,182kB of archives. After unpacking 4,030kB will be used.
The following packages have unmet dependencies:
  smbclient: Depends: samba-common (= 2:3.4.7~dfsg-1ubuntu3) but 2:3.4.7~dfsg-1ubuntu3.7 is to be installed.
The following actions will resolve these dependencies:

Upgrade the following packages:
smbclient [2:3.4.7~dfsg-1ubuntu3 (lucid, now) -> 2:3.4.7~dfsg-1ubuntu3.7
(lucid-updates, lucid-security)]

Score is 120

Accept this solution? [Y/n/q/?] y

I answered 'y' as you can see and proceeded:

Code:
The following NEW packages will be installed:
  keyutils{a} smbfs
The following packages will be upgraded:
  samba-common smbclient
2 packages upgraded, 2 newly installed, 0 to remove and 389 not upgraded.
Need to get 13.0MB of archives. After unpacking 4,035kB will be used.
Do you want to continue? [Y/n/?] y

'y' here also...

Code:
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  smbclient smbfs samba-common keyutils

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes

'Yes' here, but now this output:

Code:
Writing extended state information... Done
Get:1 http://ports.ubuntu.com/ubuntu-ports/ lucid/main keyutils 1.2-12 [26.1kB]
Err http://ports.ubuntu.com/ubuntu-ports/ lucid-security/main smbclient 2:3.4.7~dfsg-1ubuntu3.7
  404  Not Found
Err http://ports.ubuntu.com/ubuntu-ports/ lucid-security/main samba-common 2:3.4.7~dfsg-1ubuntu3.7
  404  Not Found
Err http://ports.ubuntu.com/ubuntu-ports/ lucid-security/main smbfs 2:3.4.7~dfsg-1ubuntu3.7
  404  Not Found
Fetched 26.1kB in 0s (53.5kB/s)
Selecting previously deselected package keyutils.

Probably something's missing? Well, anyway, I tried this:

Code:
ubuntu@D2Plug:~$ sudo mkdir -p /mnt/joxer
ubuntu@D2Plug:~$ sudo mount -t smbfs -o username=MY_USERNAME,password=MY_PASSWORD  //joxer.fagotten.org/hansb /mnt/joxer

The output after that sequence was:

Code:
mount: unknown filesystem type 'smbfs'

What's this???
Quote
mount: unknown filesystem type 'smbfs'


What did I do wrong?



« Last Edit: February 05, 2012, 12:08:03 PM by HaunsTM » Logged

mentor
Jr. Member
**

Karma: 2
Posts: 67


View Profile
« Reply #10 on: February 05, 2012, 07:43:49 PM »

you fail case look different at your previous one

at previous one , error message is mount reconginze smbfs but complain cifs not support , so I want you add cifs support at kernel

at this one , I see you can't recongize the smbfs , I wonder you not install smbfs at D2plug , you could type to type command smbmount to check

BTW , I used command is "apt-get install smbfs" to install smbfs
Logged

HaunsTM
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #11 on: February 07, 2012, 04:18:49 PM »

Thank you so much Mentor!

The last "BTW" did the trick!
Logged

Pages: [1]
Print
Jump to: