Skip to content

Commit 7f03701

Browse files
author
xeros
committed
OpenLGTV BCM: 0.5.0-SVN20140122: experimental support for Japan ATSC-BCM3549, mount essential filesystems at installer if not mounted
git-svn-id: http://svn.openlgtv.org.ru@1235 6f01ea5f-641d-df11-ac65-003048919802
1 parent bbbe8f9 commit 7f03701

14 files changed

Lines changed: 105 additions & 26 deletions

File tree

OpenLGTV_BCM/trunk/Changelog.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* FileManager: add command line or command window (?)
2727
* option in settings to choose links.html from remote server or local file
2828
* another Remote Control rewrite? - most likely as CGI to generate buttons on the fly + button for switching actions
29-
* add support for 'SmartTV-addon' packages
29+
* add support for 'SmartTV-addon' packages / waiting for app dumps from 2011 SmartTV models owners
3030
* insert characters in cursor position in WebUI, Internet Browser and FileManager dialogs, not always at the end of string
3131
* udpxy integration for udp:// and rtp:// links
3232
* update and test scripts chrooted on SmartTV models
@@ -54,6 +54,8 @@
5454
* FIX: update thumbshot url for bookmarks by nicola_12345
5555
* FIX: Ipla alternative service after protocol change
5656
* FIX: minor fix for TVP alternative service after protocol change
57+
* ADD: experimental support for Japanese models
58+
* ADD: mount essential filesystems at installer if not mounted before
5759
* ADD: TVN alternative service
5860
* ADD: 'showmsg' shell function to show 2-line messages on TV screen
5961
* ADD: more NetCast services
335 Bytes
Binary file not shown.

OpenLGTV_BCM/trunk/OpenLGTV_BCM-src/etc/firewall/lg/nsu.drop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
151.249.89.10
1919
151.249.89.137
2020
151.249.89.141
21+
151.249.93.147
2122
165.244.60.222
2223
174.35.8.160
2324
174.35.15.42
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/mnt/flash/data/interfaces
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/mnt/disk/ppp/ppp.conf

OpenLGTV_BCM/trunk/OpenLGTV_BCM-src/etc/rc.d/rc.mount2

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,32 @@ source /tmp/partitions.list
1212
echo "OpenLGTV_BCM-INFO: mtdblock partitions mounts..."
1313
echo "OpenLGTV_BCM-INFO: model - mtdblock$mtd_model in /mnt/lg/model"
1414
mount -t squashfs /dev/mtdblock$mtd_model /mnt/lg/model
15+
if [ -n "$mtd_fsidata" ]
16+
then
17+
# JAPAN
18+
echo "OpenLGTV_BCM-INFO: fsidata - mtdblock$mtd_fsidata in /mnt/data"
19+
mount -t squashfs /dev/mtdblock$mtd_fsidata /mnt/data
20+
echo "OpenLGTV_BCM-INFO: fsifont - mtdblock$mtd_fsifont in /mnt/font"
21+
mount -t squashfs /dev/mtdblock$mtd_fsifont /mnt/font
22+
echo "OpenLGTV_BCM-INFO: disk - mtdblock$mtd_disk in /mnt/disk"
23+
mount -t yaffs2 /dev/mtdblock$mtd_disk /mnt/disk -o noatime 2>&1
24+
if [ "$?" -ne "0" ]
25+
then
26+
echo "OpenLGTV_BCM-WARNING: problem mounting /dev/mtd$mtd_disk - trying to erase it and mount again..."
27+
flash_eraseall /dev/mtd$mtd_disk
28+
sync
29+
mount -t yaffs2 /dev/mtdblock$mtd_disk /mnt/disk -o noatime 2>&1
30+
fi
31+
if [ -d "/mnt/data/initdisk/disk" -a ! -e "/mnt/disk/config" ]
32+
then
33+
echo "OpenLGTV_BCM-WARNING: /mnt/disk/config doesnt exist - trying to copy it from /mnt/data/initdisk/disk/* ..."
34+
cp -r /mnt/data/initdisk/disk/* /mnt/disk/
35+
fi
36+
# TODO: not in lginit ???
37+
#echo "OpenLGTV_BCM-INFO: dict - mtdblock$mtd_dict in /mnt/dict"
38+
#mount -t squashfs /dev/mtdblock$mtd_dict /mnt/dict
39+
fi
40+
1541
echo "OpenLGTV_BCM-INFO: lgres - mtdblock$mtd_lgres in /mnt/lg/res/lgres"
1642
mount -t squashfs /dev/mtdblock$mtd_lgres /mnt/lg/res/lgres
1743

@@ -60,13 +86,13 @@ fi
6086
if [ -n "$mtd_authcxt" ]
6187
then
6288
echo "OpenLGTV_BCM-INFO: authcxt - mtdblock$mtd_authcxt in /mnt/lg/ciplus/authcxt"
63-
mount -t yaffs2 /dev/mtdblock$mtd_authcxt /mnt/lg/ciplus/authcxt
89+
mount -t yaffs2 /dev/mtdblock$mtd_authcxt /mnt/lg/ciplus/authcxt 2>&1
6490
fi
6591

6692
if [ -n "$mtd_data" ]
6793
then
6894
echo "OpenLGTV_BCM-INFO: data - mtdblock$mtd_data in /mnt/lg/cmn_data"
69-
mount -t yaffs2 /dev/mtdblock$mtd_data /mnt/lg/cmn_data -o noatime
95+
mount -t yaffs2 /dev/mtdblock$mtd_data /mnt/lg/cmn_data -o noatime 2>&1
7096
# v- /home partition is rather important so it shouldn't be erased
7197
#if [ "$?" -ne "0" ]
7298
#then
@@ -127,7 +153,7 @@ fi
127153
if [ -n "$mtd_fladata" ]
128154
then
129155
echo "OpenLGTV_BCM-INFO: fladata - mtdblock$mtd_fladata in /mnt/cache/flash"
130-
mount -t yaffs2 /dev/mtdblock$mtd_fladata /mnt/cache/flash -o noatime
156+
mount -t yaffs2 /dev/mtdblock$mtd_fladata /mnt/cache/flash -o noatime 2>&1
131157
if [ "$?" -ne "0" ]
132158
then
133159
echo "OpenLGTV_BCM-WARNING: problem mounting /dev/mtd$mtd_fladata - trying to erase it and mount again..."
@@ -140,7 +166,7 @@ fi
140166
if [ -n "$mtd_sdpdata" ]
141167
then
142168
echo "OpenLGTV_BCM-INFO: sdpdata - mtdblock$mtd_sdpdata in /mnt/cache/sdp"
143-
mount -t yaffs2 /dev/mtdblock$mtd_sdpdata /mnt/cache/sdp -o noatime
169+
mount -t yaffs2 /dev/mtdblock$mtd_sdpdata /mnt/cache/sdp -o noatime 2>&1
144170
if [ -d "/mnt/cache/sdp/pkgs" ]
145171
then
146172
echo "OpenLGTV_BCM-INFO: tmpfs - /mnt/cache/sdp/pkgs"
@@ -165,13 +191,13 @@ fi
165191
if [ -n "$mtd_brodata" ]
166192
then
167193
echo "OpenLGTV_BCM-INFO: brodata - mtdblock$mtd_brodata in /mnt/cache/browser"
168-
mount -t yaffs2 /dev/mtdblock$mtd_brodata /mnt/cache/browser
194+
mount -t yaffs2 /dev/mtdblock$mtd_brodata /mnt/cache/browser 2>&1
169195
if [ "$?" -ne "0" ]
170196
then
171197
echo "OpenLGTV_BCM-WARNING: problem mounting /dev/mtd$mtd_brodata - trying to erase it and mount again..."
172198
flash_eraseall /dev/mtd$mtd_brodata
173199
sync
174-
mount -t yaffs2 /dev/mtdblock$mtd_brodata /mnt/cache/browser
200+
mount -t yaffs2 /dev/mtdblock$mtd_brodata /mnt/cache/browser 2>&1
175201
fi
176202
echo "OpenLGTV_BCM-INFO: mount-bind - /mnt/cache/browser /home"
177203
mount --bind /mnt/cache/browser /home
@@ -196,7 +222,7 @@ fi
196222
if [ -n "$mtd_ywedata" ]
197223
then
198224
echo "OpenLGTV_BCM-INFO: ywedata - mtdblock$mtd_ywedata in /mnt/widget.data"
199-
mount -t yaffs2 /dev/mtdblock$mtd_ywedata /mnt/widget.data # US fw lginit does not handle erasing ywedata if it's not mountable
225+
mount -t yaffs2 /dev/mtdblock$mtd_ywedata /mnt/widget.data 2>&1 # US fw lginit does not handle erasing ywedata if it's not mountable
200226
echo "OpenLGTV_BCM-INFO: mount-bind - /mnt/widget.data /home"
201227
mount --bind /mnt/widget.data /home # US models do not have /home mounted, lets use ywedata as /home instead
202228
echo "OpenLGTV_BCM-INFO: mount-bind - /mnt/widget.data /mnt/cache/browser"

OpenLGTV_BCM/trunk/OpenLGTV_BCM-src/etc/rc.d/rc.platform

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ then
1414
country_model=US
1515
platform=GP2B
1616
else
17-
echo "OpenLGTV_BCM-INFO: setting country_model to KR - recognised Korean 2010 BCM BCM3549 (GP2B) model"
18-
country_model=KR
19-
platform=GP2B
17+
if [ -n "`grep -m 1 \"^mtd10.*fsidata\" /proc/mtd`" ]
18+
then
19+
else
20+
echo "OpenLGTV_BCM-INFO: setting country_model to JA - recognised Japan 2010 BCM BCM3549 (GP2B) model"
21+
# TODO: support for JAPAN ???
22+
country_model=JA
23+
platform=GP2B
24+
fi
2025
fi
2126
else
2227
if [ "$mtd_count" -gt "49" ]

OpenLGTV_BCM/trunk/OpenLGTV_BCM-src/etc/rc.d/rc.release

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
olockfile="/mnt/user/lock/openrelease-try.lock"
77
olockfile_prepare="/mnt/user/lock/openrelease-try-prepare.lock"
88

9+
RELEASE="/lg/lgapp/RELEASE"
10+
JA_RELEASE="/mnt/apl/bin/dtv.bin"
11+
912
if [ "$1" = "restart" ]
1013
then
1114
echo "OpenLGTV_BCM-WARN: rc.release: trying to restart (OPEN)RELEASE - TV might reboot"
@@ -61,9 +64,16 @@ then
6164
[ -f "$olockfile_prepare" -a -f "$olockfile" ] && rm -f "$olockfile_prepare"
6265
fi
6366
else
64-
echo "OpenLGTV_BCM-INFO: setting RELEASE to start"
65-
rname="RELEASE"
66-
RELEASE_cmd="/lg/lgapp/RELEASE 0"
67+
if [ -f "$JA_RELEASE" -a ! -e "$RELEASE" ]
68+
then
69+
rname="$JA_RELEASE"
70+
RELEASE_cmd="$JA_RELEASE 0"
71+
#TODO: /mnt/apl/bin/dtv_shellcall.bin ?????
72+
else
73+
rname="RELEASE"
74+
RELEASE_cmd="/lg/lgapp/RELEASE 0"
75+
fi
76+
echo "OpenLGTV_BCM-INFO: setting $rname to start"
6777
skip_rel_check=""
6878
fi
6979

OpenLGTV_BCM/trunk/OpenLGTV_BCM-src/etc/rc.d/rc.variables

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
echo "OpenLGTV_BCM-INFO: variables initialization"
77
#export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:.
8-
export PATH=.:/tmp/extroot/bin:/tmp/extroot/sbin:/tmp/extroot/usr/bin:/tmp/extroot/usr/sbin:/mnt/user/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/mnt/browser/bin:/mnt/addon/bin:/mnt/addon/stagecraft/bin:/scripts
8+
export PATH=.:/tmp/extroot/bin:/tmp/extroot/sbin:/tmp/extroot/usr/bin:/tmp/extroot/usr/sbin:/mnt/user/bin:/mnt/apl/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/mnt/browser/bin:/mnt/addon/bin:/mnt/addon/stagecraft/bin:/scripts
99
#export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/mnt/addon/lib:/mnt/addon/stagecraft/lib:/mnt/lg/res/lgres
10-
export LD_LIBRARY_PATH=.:/tmp/extroot/lib:/tmp/extroot/usr/lib:/mnt/user/lib:/lib:/usr/lib:/usr/local/lib:/mnt/lg/res/lgres:/mnt/browser/lib:/mnt/addon/lib:/mnt/addon/stagecraft/lib
10+
export LD_LIBRARY_PATH=.:/tmp/extroot/lib:/tmp/extroot/usr/lib:/mnt/user/lib:/mnt/apl/lib:/lib:/usr/lib:/usr/local/lib:/mnt/lg/res/lgres:/mnt/browser/lib:/mnt/addon/lib:/mnt/addon/stagecraft/lib
1111
export LOG_CALLER=NO
1212
export OSAMEM_SIZE=0x200000
1313
export LOAD_SYM=1
@@ -28,6 +28,9 @@ export ADDON_UP_CTRL=up_ctrl
2828
export PREMIUM_MASTER=master.swf
2929
export STORE_MASTER=StoreMaster.swf
3030
export SEARCH_RESULT=/mnt/addon/contents/search/search.swf
31+
[ -z "$TERM" ] && export TERM=vt100
32+
#JAPAN# PWD=/mnt
33+
#JAPAN# OSAINIT=done
3134

3235
export TERMINFO_DIRS=/usr/share/terminfo
3336
export OPKG_INSTROOT=/tmp/extroot
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.0-SVN20130503
1+
0.5.0-SVN20140122

0 commit comments

Comments
 (0)