Explorar el Código

Looks like the odroid has boot blobs, so is unsupportable for now

The relevant quote is 'Boot blobs are in binary format (Limited by Amlogic's policy)'
Bob Mottram hace 9 años
padre
commit
c267ef27e5
Ninguna cuenta está vinculada al correo electrónico del colaborador

+ 1
- 1
README.md Ver fichero

51
 
51
 
52
     freedombone-image -t qemu-x86_64 -s 8G
52
     freedombone-image -t qemu-x86_64 -s 8G
53
 
53
 
54
-Other supported boards are cubieboard2, cubietruck, olinuxino-lime, olinuxino-lime2, olinuxino-micro and odroid-c2.
54
+Other supported boards are cubieboard2, cubietruck, olinuxino-lime, olinuxino-lime2 and olinuxino-micro.
55
 
55
 
56
 If the image build fails with an error such as "/Error reading from server. Remote end closed connection/" then you can specify a debian package mirror repository manually with:
56
 If the image build fails with an error such as "/Error reading from server. Remote end closed connection/" then you can specify a debian package mirror repository manually with:
57
 
57
 

BIN
man/freedombone-image.1.gz Ver fichero


+ 0
- 53
src/freedombone-image-hardware-setup Ver fichero

133
              -d $initRd uInitrd )
133
              -d $initRd uInitrd )
134
 }
134
 }
135
 
135
 
136
-odroidc2_setup_boot() {
137
-    dtb="$1"
138
-
139
-    # Setup uEnv.txt
140
-    if grep -q btrfs /etc/fstab ; then
141
-        fstype=btrfs
142
-    else
143
-        fstype=ext4
144
-    fi
145
-    kernelVersion=$(ls /usr/lib/*/${dtb}.dtb | head -1 | cut -d/ -f4)
146
-    version=$(echo $kernelVersion | sed 's/linux-image-\(.*\)/\1/')
147
-    initRd=initrd.img-$version
148
-    vmlinuz=vmlinuz-$version
149
-
150
-    # based on http://odroid.com/dokuwiki/doku.php?id=en:c2_building_u-boot
151
-    cat >> /boot/uEnv.txt <<EOF
152
-mmcroot=/dev/mmcblk0p2 ro
153
-mmcrootfstype=$fstype rootwait fixrtc
154
-mmcrootflags=subvol=@
155
-
156
-console=ttyO0,115200n8
157
-
158
-kernel_file=$vmlinuz
159
-initrd_file=$initRd
160
-
161
-loadaddr=0x11000000
162
-initrd_addr=0x13000000
163
-fdtaddr=0x1000000
164
-
165
-initrd_high=0xffffffff
166
-fdt_high=0xffffffff
167
-
168
-loadkernel=load mmc \${mmcdev}:\${mmcpart} \${loadaddr} \${kernel_file}
169
-loadinitrd=load mmc \${mmcdev}:\${mmcpart} \${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
170
-loadfdt=load mmc \${mmcdev}:\${mmcpart} \${fdtaddr} /dtbs/\${fdtfile}
171
-
172
-m="1080p60hz"
173
-m_bpp="32"
174
-
175
-loadfiles=run loadkernel; run loadinitrd; run loadfdt
176
-mmcargs=setenv bootargs rootwait rw console=tty0 console=\${console} root=\${mmcroot} rootfstype=\${mmcrootfstype} rootflags=\${mmcrootflags} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} fsck.fix=yes
177
-
178
-uenvcmd=run loadfiles; run mmcargs; booti \${loadaddr} \${initrd_addr}:\${initrd_size} \${fdtaddr}
179
-EOF
180
-
181
-    mkdir -p /boot/dtbs
182
-    cp /usr/lib/linux-image-*-armmp/* /boot/dtbs
183
-}
184
-
185
 a20_setup_boot() {
136
 a20_setup_boot() {
186
     dtb="$1"
137
     dtb="$1"
187
 
138
 
246
         beaglebone_repack_kernel
197
         beaglebone_repack_kernel
247
         enable_serial_console ttyO0
198
         enable_serial_console ttyO0
248
         ;;
199
         ;;
249
-    odroid-c2)
250
-        odroidc2_setup_boot meson64_odroidc2
251
-        enable_serial_console ttyO0
252
-        ;;
253
     cubietruck)
200
     cubietruck)
254
         a20_setup_boot sun7i-a20-cubietruck.dtb
201
         a20_setup_boot sun7i-a20-cubietruck.dtb
255
         enable_serial_console ttyS0
202
         enable_serial_console ttyS0

+ 0
- 16
src/freedombone-image-make Ver fichero

83
 # Packages needed on the beaglebone
83
 # Packages needed on the beaglebone
84
 beaglebone_pkgs="linux-image-armmp u-boot-tools u-boot"
84
 beaglebone_pkgs="linux-image-armmp u-boot-tools u-boot"
85
 
85
 
86
-# Packages needed on the Odroid C2 devices:
87
-odroidc2_pkgs="linux-image-arm64 u-boot-tools u-boot"
88
-
89
 # Packages needed on the Allwinner A20 devices:
86
 # Packages needed on the Allwinner A20 devices:
90
 a20_pkgs="linux-image-armmp-lpae u-boot-tools u-boot u-boot-sunxi"
87
 a20_pkgs="linux-image-armmp-lpae u-boot-tools u-boot u-boot-sunxi"
91
 
88
 
108
  --roottype btrfs \
105
  --roottype btrfs \
109
 "
106
 "
110
 		;;
107
 		;;
111
-    odroid-c2)
112
-		extra_pkgs="$odroidc2_pkgs"
113
-		extra_opts="\
114
- --variant minbase \
115
- --bootoffset=2mib \
116
- --bootsize 128M \
117
- --boottype ext2 \
118
- --no-kernel \
119
- --no-extlinux \
120
- --foreign /usr/bin/qemu-arm-static \
121
- --roottype btrfs \
122
-"
123
-		;;
124
     cubietruck | a20-olinuxino-lime | a20-olinuxino-lime2 | a20-olinuxino-micro | cubieboard2)
108
     cubietruck | a20-olinuxino-lime | a20-olinuxino-lime2 | a20-olinuxino-micro | cubieboard2)
125
 		extra_pkgs="$a20_pkgs"
109
 		extra_pkgs="$a20_pkgs"
126
 		extra_opts="\
110
 		extra_opts="\

+ 0
- 11
src/freedombone-image-makefile Ver fichero

89
 	$(SIGN)
89
 	$(SIGN)
90
 	@echo "Build complete."
90
 	@echo "Build complete."
91
 
91
 
92
-# build Odroid C2 SD card image
93
-odroid-c2: prep
94
-	$(eval ARCHITECTURE = aarch64)
95
-	$(eval MACHINE = odroid-c2)
96
-	$(MAKE_IMAGE)
97
-	@rm -f $(ARCHIVE)
98
-	$(XZ) $(IMAGE)
99
-	@echo ""
100
-	$(SIGN)
101
-	@echo "Build complete."
102
-
103
 # build Cubieboard2 SD card image
92
 # build Cubieboard2 SD card image
104
 cubieboard2: prep
93
 cubieboard2: prep
105
 	$(eval ARCHITECTURE = armhf)
94
 	$(eval ARCHITECTURE = armhf)