Comment 5 for bug 1579767

Revision history for this message
Yann Sionneau (yann-sionneau) wrote :

I recompiled my u-boot with the mentioned config changes, then I regenerated my uboot.env with -r -s 131072.
Here is what I get :
Unmounting...
panic: runtime error: index out of range

goroutine 1 [running, locked to thread]:
panic(0x94f960, 0xc82000e0c0)
 /usr/lib/go-1.6/src/runtime/panic.go:464 +0x3e6
github.com/mvo5/uboot-go/uenv.parseData(0xc82056a005, 0x1fffb, 0x3fdfb, 0x7419fb55)
 /home/egon/devel/go/src/github.com/mvo5/uboot-go/uenv/env.go:95 +0x2ea
github.com/mvo5/uboot-go/uenv.Open(0xc8200566c0, 0x33, 0x0, 0x0, 0x0)
 /home/egon/devel/go/src/github.com/mvo5/uboot-go/uenv/env.go:80 +0x440
github.com/ubuntu-core/snappy/partition.(*uboot).SetBootVar(0xecf4b8, 0xa0b560, 0xd, 0xc820389893, 0x13, 0x0, 0x0)
 /home/egon/devel/go/src/github.com/ubuntu-core/snappy/partition/uboot.go:53 +0x6a
main.(*Snapper).install(0xeb2828, 0xc820136060, 0x1e, 0x0, 0x0)
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:265 +0x1532
main.(*Snapper).setup(0xeb2828, 0xc8204f17c8, 0x0, 0x0, 0x0, 0x0)
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:630 +0x26f3
main.(*Snapper).deploy(0xeb2828, 0xc8204f17c8, 0x0, 0x0, 0x0, 0x0)
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:658 +0x290
main.(*Snapper).create(0xeb2828, 0x0, 0x0)
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/snappy.go:815 +0xb8e
main.(*CoreCmd).Execute(0xeb2800, 0xc82000a1e0, 0x1, 0xf, 0x0, 0x0)
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/core.go:83 +0x3b1
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc820012c30, 0xc82000a0f0, 0xf, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0)
 /home/egon/devel/go/src/github.com/jessevdk/go-flags/parser.go:301 +0xa10
main.execute(0xc82000a0f0, 0xf, 0xf)
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/main.go:64 +0x3c9
main.main()
 /home/egon/devel/go/src/launchpad.net/goget-ubuntu-touch-all-snaps/ubuntu-device-flash/main.go:46 +0x3b