MeLe A2000: Difference between revisions

From Lundman Wiki
No edit summary
mNo edit summary
Line 1: Line 1:
== Help needed ==
=== MeLE A2000 ===


Hi,
I purchased a MeLE A2000 from Tom over at [http://www.aliexpress.com/product-fm/546571245-Mele-A2000-TV-box-Allwinner-A10-hackable-device-wholesalers.html aliexpress], and been playing around with it as well. First I wanted to install ICS4, to do that I downloaded the '''android_4.0.img''' file from the 'net. Alas, there is a large volume of confusing information on what to do with this.


I don't know where I can add a discussion but I was wondering if someone can help me,
[http://www.lundman.net/ftp/mele/ http://www.lundman.net/ftp/mele/]
[https://www.wuala.com/zercosz/Mele%20A2000/Firmware/?key=ThisIsFC2012 https://www.wuala.com/zercosz/Mele%20A2000/Firmware/?key=ThisIsFC2012]


I have An IOBOX and I tried to install an internal HDD 1.5T. The operation failed and IOBOX said that NMT doesn't support this HDD yet.  
For the MeLE A2000, I also downloaded '''PhoenixCardV303(win7)''' and installed that in my VirtualBox Win7 system, forwarded the OSX USB drive and told it to install '''android_4.0.img'''.


Although the format failed, I successfully connected with telnet, formatted the partitions, unzipped the NMT software to the correct partition. I also managed to load the init_nmt script and restart gaya and now the NMT works.
[https://www.wuala.com/zercosz/Mele%20A2000/Utilidades%20Mele/?key=ThisIsFC2012 https://www.wuala.com/zercosz/Mele%20A2000/Utilidades%20Mele/?key=ThisIsFC2012]
[http://www.lundman.net/ftp/mele/ http://www.lundman.net/ftp/mele/]


The problem is that NMT doesn't start if I restart the IOBOX.
After that, I inserted the SD card into Mele, and rebooted.


I think that the issue is related to the fact that my /dev/hda1 is mounted to /HARD_DISK_A1 and /dev/hda3 is mounted to /HARD_DISK_A3 although the correct mount is /nmt and /HARD_DISK and something with the /share.
The power LED will blink RED + BLUE for a while, then power LED will turn off.


I thought of changing the init scripts but I failed to do so (since the scripts are not saved).  
Take out SDcard, and reboot MeLE. It will now boot ICS, but only on HDMI@720p.


can you help?
I can confirm BubbleUPNP + 2160pPlayer will play 1080p MKVs over network. Nice!


thanks,
Gil


<blockquote>Hello Gil,
=== Google Market/Play ===


If the partition setup is correct for the NMT, the disk volume name is HARD_DISK. So if you get HARD_DISK_A1, _A3 etc, it will fail. Should this occur, the typical resolve (at least for common users) would be to make clean re-install of the disk. And make sure your box is on recent firmware. You could google or search the forum for your HDD (brand/model) to see if there is more info there.<br><br>
I installed one of the Terminal programs, and told adb to use TCP (haven't bothered to open my mele yet). Using adb and the instructions found [http://www.slatedroid.com/topic/30855-scripts-allwinner-a10-tablets-google-play-script/ allwinner a10 scripts] I loaded Google Market/Play to the mele.


/share is a link to /opt/sybhttpd/localhost.drives/HARD_DRIVE/
=== Changing resolution ===
<br><br>
I think you'll get better response on the NMT forums.<br>
Cheers --[[User:Dc11ab|dc11ab]] 19:37, 15 January 2009 (JST)
</blockquote>


== INIT_NMT START ==
Changing resolution can be done by modifying the boot time scripts that the A10 uses. Usually done on a separate boot partition. For example, the Mele image has the files:


Dear.
mount /dev/mmcblk0p1 /mnt
ls -l /mnt/
evb.bin


I would really like to install apps on my external usb HDD,
git clone https://github.com/amery/sunxi-tools
but I allways get this message after I type:
cd sunxi-tools
make
./bin2fex /mnt/evb.bin > evb.fex   


/etc/init_nmt start
Edit the file any odd way you want, changing '''screen0_output_type''' and '''screen0_output_mode'''. See modes here: [https://github.com/amery/linux-allwinner/blob/allwinner-v3.0-android-v2/include/linux/drv_display_sun4i.h#L132]


Result is:
./fex2bin evb.fex > /mnt/evb.bin




/ # ls
If you are running the Android 4 (ICS) Beta that was released, to change the resolution to HDMI 1080p, you can do this. Using either a terminal program on Android (ConnectionBot for example) or the USB Console (if connected).


USB_DRIVE_A-1 dev            lib            opt            sys            var
On the mele root shell
USB_DRIVE_A-2 etc            linuxrc        proc          tmp
  setprop service.adb.tcp.port 5555
USB_DRIVE_A-3 home          mnt            root          upnp
  stop adbd
bin            init          modules        sbin          usr
  start adbd
netstat -na      # Check that it is listening on port 5555


/ # cd /opt/sybhttpd/localhost.drives/
On remote adb machine
adb connect 192.168.xxx.xxx    # Put in the Mele's IP
adb shell
adb> mount -t vfat /dev/block/nanda /mnt/obb
adb> exit
adb push script-HDMI-1080p60.bin /mnt/obb/
adb shell
adb> cd /mnt/obb
adb> busybox cp script-HDMI-1080p60.bin script.bin


/opt/sybhttpd/localhost.drives # ls
If you don't want to edit the script file yourself, you can download my prepared one:
[http://www.lundman.net/ftp/mele/script-HDMI-1080p60.bin script-HDMI-1080p60.bin]


HARD_DISK      NETWORK_SHARE  USB_DRIVE_A-1  USB_DRIVE_A-2  USB_DRIVE_A-3
=== U-boot ===


/opt/sybhttpd/localhost.drives # cd /
Since I added ZFS to u-boot for CuBox, and also patched in Samsungs EXT4 patches, I built hno's u-boot to test.


/ # /etc/init_nmt start
https://github.com/lundman/uboot-allwinner/tree/zfs


SHAREROOT=/opt/sybhttpd/localhost.drives/HARD_DISK
wget http://lundman.net/ftp/mele/sunxi-spl.bin
sh: 3: unknown operand
dd if=sunxi-spl.bin of=/dev/sdc bs=1024 seek=8        # Obviously, '''sdc''' is my SDcard, change device to applicable.
mkdir: cannot create directory '/share/Video': No such file or directory
chmod: /share/Video: No such file or directory
wget http://lundman.net/ftp/mele/u-boot.bin
mkdir: cannot create directory '/share/Music': No such file or directory
dd if=u-boot.bin of=/dev/sdc bs=1024 seek=32          # Obviously, '''sdc''' is my SDcard, change device to applicable.
chmod: /share/Music: No such file or directory
mkdir: cannot create directory '/share/Photo': No such file or directory
chmod: /share/Photo: No such file or directory
/etc/init_nmt: line 246: cannot create /mnt/syb8634/server/php5server/httpd_inc.conf: nonexistent directory


/ #
U-Boot 2012.04.01-g39085db-dirty (May 29 2012 - 02:29:31) Allwinner Technology
CPU:  SUNXI Family
Board: A10-EVB
DRAM:  512 MiB
MMC:  SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
sun4i#zfsload
zfsload - load binary file from a ZFS filesystem


What could be wrong?
  sun4i#zfsload mmc 0:2 0x48000000 /boot/@/uImage
 
Loading file "/boot/@/uImage" from mmc device 0:2 xxa2
Thank you very much
zfs fsname = '/boot/' snapname='<NULL>' filename = '/uImage'
With regards
4230340 bytes read
 
Data3
sun4i#bootm 0x48000000
 
## Booting kernel from Legacy Image at 48000000 ...
:: Hello Data3
  Image Name:   Linux-3.0.8+
:: What NMT model do you have (A110 etc)? What firmware revision?
  Image Type:   ARM Linux Kernel Image (uncompressed)
:: From the looks of the output it may need an additional symlink for /share somewhere along:
  Data Size:    4230276 Bytes = 4 MiB
  # ln -s /opt/sybhttpd/localhost.drives/HARD_DISK /share
  Load Address: 40008000
:: /[[User:Dc11ab|dc11ab]]
  Entry Point:  40008000
 
  Verifying Checksum ... OK
 
  Loading Kernel Image ... OK
'''NMT & FIRMWARE'''
  OK
 
   
Thank you very much on your quick response and srry on my
  Starting kernel ...
broken english if I go wrong somewhere...
 
NMT: Popcorn A-110
 
FW: 01-17-100317-15-POP-403
 
My knowledge of Linux is less then zero and I see that I am not the
only one with this kind of problem.
 
I`ll try to add this line
when i arrive home and I`ll tell you what happend.
 
Thank you again!
 
 
 
'''ADDITIONAL SYMLINK FOR /SHARE'''
 
Now i got home and tried again..
Here`s the result:
BusyBox v1.5.0 (2010-03-12 14:25:37 MYT) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
  / # mkdir /mnt/temp
  / # mount /dev/sda1 /mnt/temp
/ # ln -s /mnt/temp/syb8634/ /mnt/
  / # mkdir /opt/sybhttpd/localhost.drives/HARD_DISK
/ # '''ln -s /opt/sybhttpd/localhost.drives/HARD_DISK /share'''
/ # mount /dev/sda1 /opt/sybhttpd/localhost.drives/HARD_DISK
/ # /etc/init_nmt start
   
   
  SHAREROOT=/opt/sybhttpd/localhost.drives/HARD_DISK
  DRAM: 512[    0.000000] Initializing cgroup subsys cpuset
sh: 4: unknown operand
/etc/init_nmt: line 246: cannot create /mnt/syb8634/server/php5server/httpd_inc.
conf: Too many levels of symbolic links
/
 
:: That could mean we have a link that links back to the original link.
:: I've not used this hack myself so I can't get you any further. If you are lucky lundman may spot this discussion and have a better idea of what to do, otherwise I suggest you bring this issue forth on the networkedmediatank.com forums where more people could have a look at it. / ~~
 
== Errors ==
 
I followed the installation and get to this point:
 
Starting FTP Server...ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/player/bg_pc.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/player/bg_tv.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/setting/bg_pc.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/setting/bg_tv.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/player/bg_pc.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/player/bg_tv.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/setting/bg_pc.jpg: File exists
ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/setting/bg_tv.jpg: File exists
rm: cannot remove 'httpd.pid': No such file or directory
Start HTTP Server : [FAILED]
Updating samba workgroup...
Updating samba password...Starting samba/mnt/syb8634/server
 
--------------> After a while I get following message:
 
Stop MS UPnP    : [FAILED]
Stop mDNSrespd  : [FAILED]
Stop synMusic    : [  OK  ]
Stop HTTP Server : [  OK  ]
SMP8634 Media Server Server Stopped...
/mnt/syb8634/bin
Start HTTP Server : [FAILED]
 
 
I can connect via FTP but no installation with CSI is possible.
 
 
 
Other problem: after reboot everything is gone and I have to start from scratch.
 
== Errors ==
 
I followed the installation and get to this point:
 
# Starting FTP Server...ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/player/bg_pc.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/player/bg_tv.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/setting/bg_pc.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVHD/setting/bg_tv.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/player/bg_pc.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/player/bg_tv.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/setting/bg_pc.jpg: File exists
# ln: /mnt/syb8634/web/sys/nmt_8634/TVSD/setting/bg_tv.jpg: File exists
# rm: cannot remove 'httpd.pid': No such file or directory
# Start HTTP Server : [FAILED]
# Updating samba workgroup...
# Updating samba password...Starting samba/mnt/syb8634/server
 
--------------> After a while I get following message:
 
#  Stop MS UPnP    : [FAILED]
# Stop mDNSrespd  : [FAILED]
# Stop synMusic   : [  OK  ]
# Stop HTTP Server : [  OK  ]
# SMP8634 Media Server Server Stopped...
# /mnt/syb8634/bin
# Start HTTP Server : [FAILED]
 
 
I can connect via FTP but no installation with CSI is possible.
 
 
 
Other problem: after reboot everything is gone and I have to start from scratch.

Revision as of 07:10, 20 June 2012

MeLE A2000

I purchased a MeLE A2000 from Tom over at aliexpress, and been playing around with it as well. First I wanted to install ICS4, to do that I downloaded the android_4.0.img file from the 'net. Alas, there is a large volume of confusing information on what to do with this.

http://www.lundman.net/ftp/mele/ 
https://www.wuala.com/zercosz/Mele%20A2000/Firmware/?key=ThisIsFC2012

For the MeLE A2000, I also downloaded PhoenixCardV303(win7) and installed that in my VirtualBox Win7 system, forwarded the OSX USB drive and told it to install android_4.0.img.

https://www.wuala.com/zercosz/Mele%20A2000/Utilidades%20Mele/?key=ThisIsFC2012
http://www.lundman.net/ftp/mele/ 

After that, I inserted the SD card into Mele, and rebooted.

The power LED will blink RED + BLUE for a while, then power LED will turn off.

Take out SDcard, and reboot MeLE. It will now boot ICS, but only on HDMI@720p.

I can confirm BubbleUPNP + 2160pPlayer will play 1080p MKVs over network. Nice!


Google Market/Play

I installed one of the Terminal programs, and told adb to use TCP (haven't bothered to open my mele yet). Using adb and the instructions found allwinner a10 scripts I loaded Google Market/Play to the mele.

Changing resolution

Changing resolution can be done by modifying the boot time scripts that the A10 uses. Usually done on a separate boot partition. For example, the Mele image has the files:

mount /dev/mmcblk0p1 /mnt
ls -l /mnt/
evb.bin
git clone https://github.com/amery/sunxi-tools
cd sunxi-tools
make
./bin2fex /mnt/evb.bin > evb.fex    

Edit the file any odd way you want, changing screen0_output_type and screen0_output_mode. See modes here: [1]

./fex2bin evb.fex > /mnt/evb.bin


If you are running the Android 4 (ICS) Beta that was released, to change the resolution to HDMI 1080p, you can do this. Using either a terminal program on Android (ConnectionBot for example) or the USB Console (if connected).

On the mele root shell

setprop service.adb.tcp.port 5555
stop adbd
start adbd
netstat -na       # Check that it is listening on port 5555

On remote adb machine

adb connect 192.168.xxx.xxx    # Put in the Mele's IP
adb shell
adb> mount -t vfat /dev/block/nanda /mnt/obb
adb> exit
adb push script-HDMI-1080p60.bin /mnt/obb/
adb shell
adb> cd /mnt/obb
adb> busybox cp script-HDMI-1080p60.bin script.bin

If you don't want to edit the script file yourself, you can download my prepared one: script-HDMI-1080p60.bin

U-boot

Since I added ZFS to u-boot for CuBox, and also patched in Samsungs EXT4 patches, I built hno's u-boot to test.

https://github.com/lundman/uboot-allwinner/tree/zfs
wget http://lundman.net/ftp/mele/sunxi-spl.bin
dd if=sunxi-spl.bin of=/dev/sdc bs=1024 seek=8        # Obviously, sdc is my SDcard, change device to applicable.

wget http://lundman.net/ftp/mele/u-boot.bin
dd if=u-boot.bin of=/dev/sdc bs=1024 seek=32          # Obviously, sdc is my SDcard, change device to applicable.
U-Boot 2012.04.01-g39085db-dirty (May 29 2012 - 02:29:31) Allwinner Technology 

CPU:   SUNXI Family
Board: A10-EVB
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

sun4i#zfsload
zfsload - load binary file from a ZFS filesystem
sun4i#zfsload mmc 0:2 0x48000000 /boot/@/uImage
Loading file "/boot/@/uImage" from mmc device 0:2 xxa2
zfs fsname = '/boot/' snapname='<NULL>' filename = '/uImage'
4230340 bytes read

sun4i#bootm 0x48000000
## Booting kernel from Legacy Image at 48000000 ...
  Image Name:   Linux-3.0.8+
  Image Type:   ARM Linux Kernel Image (uncompressed)
  Data Size:    4230276 Bytes = 4 MiB
  Load Address: 40008000
  Entry Point:  40008000
  Verifying Checksum ... OK
  Loading Kernel Image ... OK
OK

Starting kernel ...

DRAM: 512[    0.000000] Initializing cgroup subsys cpuset